Scripting: noteGroupReference:setVoice(...) appears to be broken

local ngr = SV:getMainEditor():getCurrentGroup()
local newNgr = SV:create("NoteGroupReference")
local voice = ngr:getVoice()
newNgr:setVoice(voice) -- this gives an error: setVoice: invalid input type
newNgr:setVoice({})    -- this also gives an error: setVoice: invalid input type

It seems like it’s not possible to use NoteGroupReference:setVoice currently.

https://resource.dreamtonics.com/scripting/NoteGroupReference.html#setVoice

2 Likes