A Standard MIDI File (SMF) reader plus a player that voices each note through
audio.synthesizeTone - .mid is a small, patent-free, well-documented event format,
so reading one is ordinary format engineering, and playback needed exactly the
instrument item 120's waveform synth already supplies: a crude but real,
entirely generated-not-borrowed one, closer to a chiptune cover than a sampled
orchestra.
Beyond notes and tempo the reader keeps program changes, bank select and channel
controllers (volume, expression, pan, sustain, the RPG Maker loop marker) and pitch
bend, and each scheduled note carries the channel voice in effect when it starts,
so a sampled renderer can pick the right instrument at the right level.
A Standard MIDI File (SMF) reader plus a player that voices each note through
audio.synthesizeTone-.midis a small, patent-free, well-documented event format, so reading one is ordinary format engineering, and playback needed exactly the instrument item 120's waveform synth already supplies: a crude but real, entirely generated-not-borrowed one, closer to a chiptune cover than a sampled orchestra.Beyond notes and tempo the reader keeps program changes, bank select and channel controllers (volume, expression, pan, sustain, the RPG Maker loop marker) and pitch bend, and each scheduled note carries the channel voice in effect when it starts, so a sampled renderer can pick the right instrument at the right level.