Open dj-turkish-ice-cream opened 4 years ago
The NTS-1 handles MIDI notes in legato mode. Will interpret this as a request for non-legato mode.
@etienne-korg Passing user_osc_param_t in NOTE_ON/NOTE_OFF and in OSC_CYCLE is really confusing, you need to clarify the behaviour in current documentation.
I suspect #26 is of the similar nature.
OSC_NOTEOFF documentation says it is "Called whenever a note off event occurs." This is a bit vague, but arguably the behavior should mirror midi note off events.
When multiple keys are held down and released one-by-one, the release of each key produces a midi note off event. However, when these midi messages are passed to the NTK1, OSC_NOTEOFF is only invoked when the last held note is released.
To Reproduce I used sendmidi to send the midi commands below.
Replace the OSC_NOTEOFF code of the Waves oscillator to turn on bit crush:
Compile, load and select oscillator.
Send midi note on 50. Sound starts as expected.
Send midi note on 51. Pitch goes up one semitone as expected.
Send midi note off 51. Expected: Pitch goes down one semitone, bitcrush is enabled. Actual: Pitch goes down one semitone, bitcrush is not enabled - i.e. OSC_NOTEOFF is not invoked.
Send midi note off 50. Sound stops as expected. Bitcrush is enabled (can be verified by setting EG to Open).