您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Output sequences to a MIDI device. (This is WIP so it's not pretty)
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.