setKeepEngineRunning method

void setKeepEngineRunning(
  1. bool nextValue
)

Set this to true in your app's initState to leave the audio engine running even when there is no sequence playing. This may consume more energy. With this setting enabled, you can use Track.startNoteNow etc to play an instrument in real time.

Implementation

void setKeepEngineRunning(bool nextValue) {
  keepEngineRunning = nextValue;
}