Readonlyeventsevery channel message received, as [status, data1, data2] in order
Readonlysamplerate the synth renders at; a render of a file through it comes out at this rate
Readonlysysexevery system-exclusive message received, as a copy
a channel message as the three bytes a hardware synth would receive (the second data byte is 0 for a program change)
adds count frames of stereo output at start of both buffers, advancing the synth by that many samples
silences every voice and returns the synth to its power-on state
a system-exclusive message, with or without the leading 0xF0 and trailing 0xF7
A
MidiSynthdouble for a retro engine: it records every message it was driven with and renders a flat level while any note is on (silence otherwise), so a test can assert what a renderer sent and read the shape of the output without a real synth or clock. Pair it withFakeAudioContext, whoseadvance()is the audio clock a test moves by hand.Example