MIDI output for Online Sequencer

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

Penulis
Ethan 2
Pemasangan harian
0
Total pemasangan
3
Nilai
0 0 0
Versi
2025-01-10
Dibuat
16 Desember 2024
Diperbarui
10 Januari 2025
Size
9,68 KB
Lisensi
MIT
Berlaku untuk

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.