Next ALT と Reset ALT ― Synthesizer V スクリプト配布
Synthesizer V スクリプトを作ってみたので配布します。
音符を選択して適用すると ALT を1つ大きい数値のものに設定したり、DFLT に戻したりする Lua スクリプトです。
function getClientInfo() return { name = "Next ALT", category = "Phonemes", author = "kadotanimitsuru", versionNumber = 1, minEditorVersion = 65540 } end MAXIMUM_NUMBER_OF_PHONEMES = 10 function main() local s = SV:getMainEditor():getSelection() local notes = s:getSelectedNotes() for key ,note in pairs(notes) do local at = note:getAttributes() for i=1, MAXIMUM_NUMBER_OF_PHONEMES do if at.alt[i] then at.alt[i] = at.alt[i] + 1 else at.alt[i] = 1 end end note:setAttributes(at) end SV:finish() end --[[ Copyright © 2020 kadotanimitsuru Released under the MIT license https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_license ]]--
function getClientInfo() return { name = "Reset ALT", category = "Phonemes", author = "kadotanimitsuru", versionNumber = 1, minEditorVersion = 65540 } end function main() local s = SV:getMainEditor():getSelection() local notes = s:getSelectedNotes() for key ,note in pairs(notes) do local at = note:getAttributes() at.alt = {} note:setAttributes(at) end SV:finish() end --[[ Copyright © 2020 kadotanimitsuru Released under the MIT license https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_license ]]--