Skip to content

Commit

Permalink
chore: autopublish 2023-07-20T11:32:38Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 20, 2023
1 parent 96832a2 commit 0fc7cfb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
30 changes: 14 additions & 16 deletions dist/meter_set_numeric.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4790,12 +4790,19 @@ package.preload["library.configuration"] = package.preload["library.configuratio
end
return configuration
end
local info = [[
"Meter Set Numeric" provides rapid entry of simple or complex
function plugindef()
finaleplugin.RequireSelection = true
finaleplugin.Author = "Carl Vine"
finaleplugin.AuthorURL = "https://carlvine.com/?cv=lua"
finaleplugin.Copyright = "https://creativecommons.org/licenses/by/4.0/"
finaleplugin.Version = "0.68"
finaleplugin.Date = "2023/06/12"
finaleplugin.MinJWLuaVersion = 0.60
finaleplugin.Notes = [["Meter Set Numeric" provides rapid entry of simple or complex
time signatures with a few keystrokes.
It supports composite numerators like [3+2+3/16] and can join
with further composites (e.g. [3+2+3/16]+[1/4]+[5+4/8]).
"Display only" time signatures can be equally complex.
"Display only" time signatures can be equally complex and set without using a mouse.
At startup the time signature of the first selected measure is shown.
Click the "Clear All" button to revert to a simple 4/4 with no other options.
All measures in the current selection will be assigned the new time signature.
Expand All @@ -4808,16 +4815,7 @@ To prevent automatic compounding, instead of the bottom 'note' number enter its
(quarter note = 1024; eighth note = 512 etc).
Empty and zero "Top" numbers will be ignored.
If "Secondary" numbers are zero then "Tertiary" values are ignored.
]]
function plugindef()
finaleplugin.RequireSelection = true
finaleplugin.Author = "Carl Vine"
finaleplugin.AuthorURL = "http://carlvine.com/?cv=lua"
finaleplugin.Copyright = "https://creativecommons.org/licenses/by/4.0/"
finaleplugin.Version = "0.68"
finaleplugin.Date = "2023/06/12"
finaleplugin.MinJWLuaVersion = 0.60
finaleplugin.Notes = info
]]
finaleplugin.HashURL = "https://raw.githubusercontent.com/finale-lua/lua-scripts/master/hash/meter_set_numeric.hash"
return "Meter Set Numeric", "Meter Set Numeric", "Set the Meter Numerically"
end
Expand Down Expand Up @@ -4886,7 +4884,7 @@ function user_chooses_meter(meter, rgn)
cstat(1, y, x[3], "DISPLAY SIGNATURE")
cstat(3, y, 150, "(set to '0' for none)")
dialog:CreateButton(x[5] + 60, y):SetText("?"):SetWidth(20)
:AddHandleCommand(function() finenv.UI():AlertInfo(info:gsub(" \n", " "), "INFO: Meter Set Numeric") end)
:AddHandleCommand(function() finenv.UI():AlertInfo(finaleplugin.Notes:gsub(" \n", " "), "INFO: Meter Set Numeric") end)

y = 0
local box = {}
Expand All @@ -4913,7 +4911,7 @@ function user_chooses_meter(meter, rgn)
box[i]:SetText("0")
box[i + 3]:SetInteger(0)
end
box[1]:SetFocus()
box[1]:SetKeyboardFocus()
end
)
dialog:CreateOkButton()
Expand Down Expand Up @@ -5023,7 +5021,7 @@ function convert_choices_to_meter(choices, meter)
bottom = 4096 / bottom
if #data.top[count] == 1 then
local n = data.top[count][1]
if n % 3 == 0 and jump == 0 and bottom < 1024 then
if n % 3 == 0 and jump == 0 and n > 3 then
data.top[count][1] = n / 3
bottom = bottom * 3
end
Expand Down
2 changes: 1 addition & 1 deletion hash/meter_set_numeric.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
775b429f8455499bcb71485bc73067216d2c95993ed8872409fd106779b54d8ab457c141aae2e65e27495eec7f74a4a689ca24f0d691003d9336ffd533889c67 meter_set_numeric.lua
8cfaf11c8535ac068ae246a7838806d6e0014ed371d0f108f53ef4aeaf9c39143f7a78046e36509486180c3866e8bfcdf2302e741a7825b8bf57d0c2b30939cd meter_set_numeric.lua

0 comments on commit 0fc7cfb

Please sign in to comment.