Skip to content

Commit

Permalink
chore: autopublish 2023-12-07T00:07:57Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 7, 2023
1 parent 7749a7d commit 63f9246
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 18 deletions.
7 changes: 3 additions & 4 deletions dist/harp_pedal_wizard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ function plugindef()
finaleplugin.Copyright = "2022"
finaleplugin.Version = "2.0"
finaleplugin.Date = "2022-07-17"
finaleplugin.HandlesUndo = true
finaleplugin.MinJWLuaVersion = 0.63
finaleplugin.HashURL = "https://raw.githubusercontent.com/finale-lua/lua-scripts/master/hash/harp_pedal_wizard.hash"
return "Harp Pedal Wizard", "Harp Pedal Wizard", "Creates Harp Diagrams and Pedal Changes"
Expand Down Expand Up @@ -2133,9 +2134,7 @@ or a chord from the drop down lists.]])
local root = root_calc()
if diagram_checkbox:GetCheck() == 1 then use_diagram = true
elseif diagram_checkbox:GetCheck() == 0 then use_diagram = false end
return_string.LuaString = harp_notes:GetText(return_string)
if return_string.LuaString ~= "" then
end
harp_notes:GetText(return_string)
if scale_check:GetCheck() == 1 then
harp_scale(root.LuaString, scales[sel_scale:GetSelectedItem() + 1], use_diagram, use_chord)
elseif chord_check:GetCheck() == 1 then
Expand All @@ -2159,7 +2158,7 @@ or a chord from the drop down lists.]])
function apply()
update_variables()
local return_string = finale.FCString()
return_string.LuaString = harp_notes:GetText(return_string)
harp_notes:GetText(return_string)
strings_read()
if partial_checkbox:GetCheck() == 1 then partial = true
elseif partial_checkbox:GetCheck() == 0 then partial = false end
Expand Down
40 changes: 28 additions & 12 deletions dist/region_replicate_music.lua
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
function plugindef()
finaleplugin.Author = "Michael McClennan"
finaleplugin.Version = "1.0.1"
finaleplugin.Copyright = "2022/01/03"
finaleplugin.HandlesUndo = true
finaleplugin.Author = "Michael McClennan & Jacob Winkler"
finaleplugin.Version = 2.0
finaleplugin.Copyright = "2023/12/05"
finaleplugin.RequireSelection = true
finaleplugin.Notes = [[
Inspired by the 'r' key in Sibelius, this script copies the selected music, and pastes it directly to the right.
Works with a single or multiple measures.
When activated with a shortcut or hotkey, ultra fast replication is possible.
]]
finaleplugin.HashURL = "https://raw.githubusercontent.com/finale-lua/lua-scripts/master/hash/region_replicate_music.hash"
return "Replicate Music", "Replicate Music", "Inspired by the 'r' key in Sibelius, this script copies the selected music, and pastes it directly to the right"
end
local function replicate_music()
local region = finenv.Region()
local start_measure = finenv.Region().StartMeasure
local start_measure_pos = finenv.Region().StartMeasurePos
local end_measure = finenv.Region().EndMeasure
local end_measure_pos = finenv.Region().EndMeasurePos
local sum_measures = end_measure - start_measure
local start_paste_region = end_measure + 1
local start_paste_region_measure = 0
local start_paste_region_measure_pos = 0
local partial_measure_duration = 0
if sum_measures == 0 then
partial_measure_duration = end_measure_pos - start_measure_pos
end

if finenv.Region():IsAbsoluteEndMeasurePos() then
start_paste_region_measure = end_measure + 1
else
start_paste_region_measure = end_measure
start_paste_region_measure_pos = end_measure_pos + 1
end

region:CopyMusic()
finenv.Region():SetStartMeasure(start_paste_region)
finenv.Region():SetEndMeasure(start_paste_region + sum_measures)
finenv.Region():SetStartMeasure(start_paste_region_measure)
finenv.Region():SetStartMeasurePos(start_paste_region_measure_pos)
finenv.Region():SetEndMeasure(start_paste_region_measure + sum_measures)
if sum_measures == 0 then
if finenv.Region():IsAbsoluteEndMeasurePos() then
finenv.Region():SetEndMeasurePos(partial_measure_duration)
else
finenv.Region():SetEndMeasurePos(start_paste_region_measure_pos + partial_measure_duration)
end
end
region:PasteMusic()
region:ReleaseMusic()
end
Expand Down
2 changes: 1 addition & 1 deletion hash/harp_pedal_wizard.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0627e2b677f573d8476306f8804b27c0161c8aed13b023fbd4e9f4cea46b212fe654baf91f8fac146b4ad46a62d2f5c122bd71ed7b1bb9ff87edb9dbd750f6e7 harp_pedal_wizard.lua
e421eba7a4795e21d12f8177897aa63c9ad878d78e2dcf347c6c00ace51408a03abcc102a51a1ffee3e3b78cb29a0b9ae64d8285ba594a376abbde2cf66d4be8 harp_pedal_wizard.lua
2 changes: 1 addition & 1 deletion hash/region_replicate_music.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16507a84a0282098b921220698f0afe35ab3828bfd48f217defc954603fec6d5caa9dceb033d89445283b8c12d2d050abfc3ced4ab5030b9cf72f33de6616cca region_replicate_music.lua
12ae426a6f68befe14cba03ae551cf43b3efc8dd6cf9f235d7b3dc0528cbe0c62b3fe9059759e32164eadef356bd3dcd83ad87e5e02ac04fa9677b3200e2221e region_replicate_music.lua

0 comments on commit 63f9246

Please sign in to comment.