Skip to content

Midi thru example #187

Answered by djipco
enorrmann asked this question in Q&A
Nov 20, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

In version 3 (soon to go into beta), it is now possible to use the new Input.addForwarder() method to forward messages from an input to an output:

const destination = WebMidi.outputs[0];
WebMidi.inputs[0].addForwarder(destination);

The code above forwards all messages coming in from input #0 to the destination output. The method can also accept options to filter forwarded messages by type and/or by MIDI channel.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@enorrmann
Comment options

Answer selected by enorrmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants