MIDI output for Online Sequencer

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

作者
Ethan 2
日安装量
0
总安装量
2
评分
0 0 0
版本
2025-01-10
创建于
2024-12-16
更新于
2025-01-10
大小
9.7 KB
许可证
MIT
适用于

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.