Control change

is it possible to send a simple control change, if yes where can I find an example?

Comments

  • Yes, of course. Here is a very simple example:

    1. WebMidi.enable(function (err) {
    2.  
    3. if (err) {
    4. console.log("WebMidi could not be enabled.", err);
    5. } else {
    6. console.log(WebMidi.outputs);
    7. WebMidi.outputs[0].sendControlChange("volumecoarse", 54);
    8. }
    9.  
    10. });

    For details, you can check the senControlChange() documentation.