I ran into an issue after trying to copy a synth and got this error in the simulator (Windows):
Update error: main.lua:70: failed expression: (((((t))->tt_) == (((((5) | ((0) << 4))) | (1 << 6))))) && "table expected" at C:\GitLab-Runner\ci-builds\QSF-qsWt\0\playdate\PlayDate\Core\minilua\lapi.c:721
stack traceback:
[C]: in method 'copy'
main.lua:70: in main chunk
It seems like this only happens if synth:setParameterMod()
is set on the synth.
Sample code:
local synth = playdate.sound.synth.new(playdate.sound.kWaveSquare)
local lfo = playdate.sound.lfo.new()
synth:setParameterMod(1, lfo) -- error stops when this is commented out
local synthCopy = synth:copy()