This makes the simulator crash when pressing A:
local synth = playdate.sound.synth.new()
function playdate.AButtonDown()
synth:playNote(200, 1, 1)
end
This simply prints an error:
--local synth = playdate.sound.synth.new()
function playdate.AButtonDown()
synth:playNote(200, 1, 1)
end
And this works without problem:
local synth = playdate.sound.synth.new(playdate.sound.kWaveSine)
function playdate.AButtonDown()
synth:playNote(200, 1, 1)
end