MIDI output for Online Sequencer

Output sequences to a MIDI device. (This is WIP so it's not pretty)

Author
Ethan 2
Daily installs
0
Total installs
3
Ratings
0 0 0
Version
2025-01-10
Created
2024-12-16
Updated
2025-01-10
Size
9.68 KB
License
MIT
Applies to

This script is provided as is with no guarantees whatsoever.

🎹 Check this to enable the script.
🔇 Check this to mute only the instruments that are generating midi signals. If this is left unchecked, both the browser and your MIDI device will play the note.

This script should export midi signals to a MIDI piano device, it only sends noteOn and noteOff, none of the fancy stuff (yet?)

Line 176:
var ch = getMidiOutput(instId, (instId) => settings.instrumentCategories.Piano.includes(instId), 1);
Demonstrates the usage of getting the channel to send the note on, where the first argument is the Instrument Id, the second argument is a test function which if passed, returns the third argument which is the channel you wish to use.
As you can see, at the moment I am just checking to see if the instrument is classified as a piano, and if it is, assigning it to channel 1 (of 16).

Future plans (if I get to them) will be assigning MIDI devices and channels to all instruments and categories from the UI (The main reason I included the dropdown menu) and saving those preferences into the sequence, as well as creating a default preference.