So I have a synth. I had set it up with an arpeggio frequency mod like so:
local mod <const> = snd.lfo.new()
mod:setRetrigger(true)
mod:setArpeggio(0, obj.effect.note0, obj.effect.note1)
mod:setRate(obj.effect.rate)
synth:setFrequencyMod(mod)
But then later I try to remove that mod, by calling synth:setFrequencyMod(nil)
, and the Playdate simulator immediately crashes.