Skip to content

Array Format for Sending CC Messages Using .send() #408

Answered by djipco
ScottStick asked this question in Q&A
Discussion options

You must be logged in to vote

If you look at the documentation for the Output.send() method, you will see that it can accept, as its first argument, an array of numbers, a Uint8Array or a Message object. If we go with the array, the syntax would be something similar to this:

WebMidi.outputs[0].send([176, 9, 64]);

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ScottStick
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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