I have only tried this in the Windows simulator (3.0.1).
Test Procedure
- Get a reference to a playdate.sound.controlsignal or LFO by any means
- Attempt to set the signal’s offset or scale using the signal:setOffset() or signal:setScale() methods
Expected Result
-The controlsignal or LFO can be offset or scaled
Actual Result
-Lua error: “method 'setScale' is not callable (a nil value)” or “method 'setOffset' is not callable (a nil value)”
Naturally I expected this to be valid since the API lists LFOs and controlsignals as signals– besides that they are essential functions for transforming CC automation events from MIDI scores. Using these methods with envelopes doesn’t seem to throw any errors, though I’m not sure if it’s actually working yet.
Example 1:
testSignal = playdate.sound.controlsignal.new()
testSignal:setOffset(1)
method 'setOffset' is not callable (a nil value)
Example 2:
testSignal = playdate.sound.lfo.new()
testSignal:setScale(2)
method 'setScale' is not callable (a nil value)
Example 3:
testSignal = playdate.sound.envelope.new()
testSignal:setOffset(1)
testSignal:setScale(2)
This example executes fine.