I've created a synth with:
playdate.sound.synth.new(sample, [sustainStart, sustainEnd])
but the API docs don't define sustainStart or sustainEnd, does anyone know if it's supposed to be seconds, milliseconds or frames?
Many thanks,
Orllewin
I've created a synth with:
playdate.sound.synth.new(sample, [sustainStart, sustainEnd])
but the API docs don't define sustainStart or sustainEnd, does anyone know if it's supposed to be seconds, milliseconds or frames?
Many thanks,
Orllewin
It's frames:
local sampleRate = playdate.sound.getSampleRate()
local frames = self.sample:getLength() * sampleRate
self.sampleSynth = playdate.sound.synth.new(self.sample, math.floor(0.5 * sampleRate), math.floor(1.0 * sampleRate))
No wonder I was getting awful sounds with seconds or milliseconds - could someone update the docs and save the next dev a little pain?
filed! I'll get that in ASAP