Simulator crashes when playing synth without waveform

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

Well that’s embarrassing. :confused: Fixed by making triangle the default waveform.

Thanks for catching this (and more importantly, reporting it)!