Skip to content

Commit 2e613fd

Browse files
chore: autopublish 2024-07-20T14:08:54Z
1 parent 4a629ad commit 2e613fd

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

dist/lyrics_openai_hyphenation.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5335,7 +5335,7 @@ local osutils = require("luaosutils")
53355335
local https = osutils.internet
53365336
local config =
53375337
{
5338-
api_model = "gpt-4",
5338+
api_model = "gpt-4o",
53395339
temperature = 0.2,
53405340
add_hyphens_prompt = [[
53415341
Hyphenate the following text, delimiting words with spaces and syllables with hyphens.

dist/playback_unmute_all_staves.lua

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,29 +93,33 @@ package.preload["library.layer"] = package.preload["library.layer"] or function(
9393
return layer
9494
end
9595
function plugindef()
96-
finaleplugin.RequireSelection = true
96+
finaleplugin.RequireSelection = false
9797
finaleplugin.Author = "Nick Mazuk"
9898
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
99-
finaleplugin.Version = "1.0.3"
100-
finaleplugin.Date = "March 16, 2023"
99+
finaleplugin.Version = "1.0.4"
100+
finaleplugin.Date = "June 12, 2024"
101101
finaleplugin.CategoryTags = "Playback"
102102
finaleplugin.AuthorURL = "https://nickmazuk.com"
103103
finaleplugin.Notes = [[
104-
Run this script and all staves will be unmuted.
104+
Run this script and all staves will be unmuted and all solos will be cleared.
105105
]]
106106
finaleplugin.RTFNotes = [[
107107
{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 \fmodern Courier New;}}
108108
{\colortbl;\red255\green0\blue0;\red0\green0\blue255;}
109109
\widowctrl\hyphauto
110110
\fs18
111111
{\info{\comment "os":"mac","fs18":"fs24","fs26":"fs32","fs23":"fs29","fs20":"fs26"}}
112-
{\pard \sl264 \slmult1 \ql \f0 \sa180 \li0 \fi0 Run this script and all staves will be unmuted.\par}
112+
{\pard \sl264 \slmult1 \ql \f0 \sa180 \li0 \fi0 Run this script and all staves will be unmuted and all solos will be cleared.\par}
113113
}
114114
]]
115115
finaleplugin.HashURL = "https://raw.githubusercontent.com/finale-lua/lua-scripts/master/hash/playback_unmute_all_staves.hash"
116116
return "Unmute all staves", "Unmute all staves", "Unmutes all staves"
117117
end
118118
local layer = require("library.layer")
119+
function set_layer_playback_data(layer_playback_data)
120+
layer_playback_data.Play = true
121+
layer_playback_data.Solo = false
122+
end
119123
function playback_unmute_all_staves()
120124
local full_doc_region = finale.FCMusicRegion()
121125
full_doc_region:SetFullDocument()
@@ -126,10 +130,10 @@ function playback_unmute_all_staves()
126130
staff:Load(staff_number)
127131
local playback_data = staff:CreateInstrumentPlaybackData()
128132
for this_layer = 1, layer.max_layers() do
129-
playback_data:GetNoteLayerData(this_layer).Play = true
133+
set_layer_playback_data(playback_data:GetNoteLayerData(this_layer))
130134
end
131-
playback_data:GetChordLayerData().Play = true
132-
playback_data:GetMidiExpressionLayerData().Play = true
135+
set_layer_playback_data(playback_data:GetChordLayerData())
136+
set_layer_playback_data(playback_data:GetMidiExpressionLayerData())
133137
playback_data:Save()
134138
end
135139
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5ee52ef020fc3e6c5e1a2578aac3af31e58597de5d5826c3e2f83285fe05e10db5f387173e3cc8346be6e95be216f9de50d2ef9724eb5e46888aa11e986e392b lyrics_openai_hyphenation.lua
1+
a0b1cee9dcfc4741acc9497b327f38155c495ad7936e71548f9c1277d4a2fcf5736d88d24773e3bc43e5c746add33c93ac08de51f2963bd47109082b99c091b3 lyrics_openai_hyphenation.lua
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a9bf6d5a85efd72a34f1253d6cd62d9246a28cf4b33936eb0d50e4ddf0b1c2aefc6bb53fdc9825171e4a3be061dceac57108573767149d87c499d596c56d1cfc playback_unmute_all_staves.lua
1+
c05c2806b8f7b983a08cd5da489df406649ef2b526fa094b2766465871612d20869aa600ba0f501352caefb686fa1fb6c2d7387575baac2699f0ee149f7bf342 playback_unmute_all_staves.lua

0 commit comments

Comments
 (0)