Skip to content

Commit 4a629ad

Browse files
authored
Merge pull request #753 from rpatters1/RGP/misc
Minor tweaks
2 parents 53d3cc1 + 2745cc7 commit 4a629ad

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/lyrics_openai_hyphenation.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ local https = osutils.internet
5353

5454
local config =
5555
{
56-
api_model = "gpt-4",
56+
api_model = "gpt-4o",
5757
temperature = 0.2, -- fairly deterministic
5858
add_hyphens_prompt = [[
5959
Hyphenate the following text, delimiting words with spaces and syllables with hyphens.

src/playback_unmute_all_staves.lua

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
function plugindef()
2-
finaleplugin.RequireSelection = true
2+
finaleplugin.RequireSelection = false
33
finaleplugin.Author = "Nick Mazuk"
44
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
5-
finaleplugin.Version = "1.0.3"
6-
finaleplugin.Date = "March 16, 2023"
5+
finaleplugin.Version = "1.0.4"
6+
finaleplugin.Date = "June 12, 2024"
77
finaleplugin.CategoryTags = "Playback"
88
finaleplugin.AuthorURL = "https://nickmazuk.com"
99
finaleplugin.Notes = [[
10-
Run this script and all staves will be unmuted.
10+
Run this script and all staves will be unmuted and all solos will be cleared.
1111
]]
1212
return "Unmute all staves", "Unmute all staves", "Unmutes all staves"
1313
end
1414

1515
local layer = require("library.layer")
1616

17+
function set_layer_playback_data(layer_playback_data)
18+
layer_playback_data.Play = true
19+
layer_playback_data.Solo = false
20+
end
21+
1722
function playback_unmute_all_staves()
1823
local full_doc_region = finale.FCMusicRegion()
1924
full_doc_region:SetFullDocument()
@@ -24,10 +29,10 @@ function playback_unmute_all_staves()
2429
staff:Load(staff_number)
2530
local playback_data = staff:CreateInstrumentPlaybackData()
2631
for this_layer = 1, layer.max_layers() do
27-
playback_data:GetNoteLayerData(this_layer).Play = true
32+
set_layer_playback_data(playback_data:GetNoteLayerData(this_layer))
2833
end
29-
playback_data:GetChordLayerData().Play = true
30-
playback_data:GetMidiExpressionLayerData().Play = true
34+
set_layer_playback_data(playback_data:GetChordLayerData())
35+
set_layer_playback_data(playback_data:GetMidiExpressionLayerData())
3136
playback_data:Save()
3237
end
3338
end

0 commit comments

Comments
 (0)