Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all browser MIDI outputs #12

Open
vigliensoni opened this issue Aug 18, 2020 · 1 comment
Open

Add all browser MIDI outputs #12

vigliensoni opened this issue Aug 18, 2020 · 1 comment

Comments

@vigliensoni
Copy link
Owner

Instead of outputting only the first two MIDI outputs, add all of them

R-VAE-JS/src/app.js

Lines 108 to 131 in d91139c

if ((kkPat.indexOf(tickCounter)) >= 0) {
if ((kkMuted !== true)) {
kick.trigger()
if (webmidi) {
WebMidi.outputs[0].playNote("C1"); // WebMidi not working on Firefox
WebMidi.outputs[1].playNote("C1"); // WebMidi not working on Firefox
}
}
}
if ((snPat.indexOf(tickCounter)) >= 0) {
if ((snMuted !== true)) {
snare.trigger()
if (webmidi) {
WebMidi.outputs[0].playNote("A1");
WebMidi.outputs[1].playNote("A1");
}
}
}
if ((hhPat.indexOf(tickCounter) >= 0)) {
if ((hhMuted !== true)) {
hihat.trigger()
if (webmidi) {
WebMidi.outputs[0].playNote("G#1");
WebMidi.outputs[1].playNote("G#1");

@vigliensoni
Copy link
Owner Author

I guess It would be also convenient to also output MIDI into channel 10, not in omni mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant