Long notes after stop AKSequencer
Sometimes I need some long notes to keep playing after the sequencer stops. akSequencer.stop() // Need to put some code to ask the question Is there any way to keep the sound of a long note when AKSequencer stops? Instead of connecting your AKMusicTrack's MIDI output directly to your sampler (or oscillator bank or whatever), send it to an AKCallbackInstrument . In the callback function, you can check the status of the sequencer's MIDI messages, and send your the noteOn and noteOff messages to your sampler from there. In the callback you can add conditional logic, for example, you could use