forked from finale-lua/lua-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayback_mute_cue_notes.lua
31 lines (27 loc) · 1003 Bytes
/
playback_mute_cue_notes.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function plugindef()
finaleplugin.RequireSelection = true
finaleplugin.Author = "Nick Mazuk"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Version = "1.0"
finaleplugin.Date = "June 19, 2020"
finaleplugin.CategoryTags = "Playback"
finaleplugin.AuthorURL = "https://nickmazuk.com"
return "Mute Cue Notes", "Mute Cue Notes", "Mutes notes that are 85% normal size or smaller"
end
function playback_cues_mute()
local notesize_limit = 85
for entry in eachentrysaved(finenv.Region()) do
local playback = false
local notehead_mod = finale.FCNoteheadMod()
if entry:CalcResize() > notesize_limit then
for note in each(entry) do
notehead_mod:LoadAt(note)
if (notehead_mod.Resize > notesize_limit) then
playback = true
end
end
end
entry.Playback = playback
end
end
playback_cues_mute()