MIDI output for Online Sequencer

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

当前为 2024-12-16 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Ethan 2
评分
0 0 0
版本
2024-12-02
创建于
2024-12-16
更新于
2024-12-16
大小
9.6 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.