The code here is responsible for playing back the parsed MIDI sequence with the synthesizer.
const message = {
messageType: number, // WorkletSequencerMessageType
messageData: any // any
}
Sequencer uses Synthetizer
’s post
method to post a message with messageData
set to
workletMessageType.sequencerSpecific
.
The messageData
is set to the sequencer’s message.
WorkletSequencer
uses SpessaSynthProcessor
’s post to send a message with messageData
set to
returnMessageType.sequencerSpecific
.
The messageData
is set to the sequencer’s return message.
processTick
is called every time the process
method is called via SpessaSynthProcessor.processTickCallback
.