Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The basic answer is "no":</p> <p>Your <code>sendSysEx()</code> function is looking for take two or three parameters: </p> <ul> <li>Length</li> <li>The array of data</li> <li>The flag whether the array contains boundaries or not. This one is optional: if you omit it the parameter will be treated as false</li> </ul> <p>By trying to pass your array data like this:</p> <pre><code>MIDI.sendSysEx(10,0xF0 0x41 0x36 0x06 0x21 0x20 0x01 0x22 0x1B 0xF7,true); </code></pre> <p>You are doing one of two things:</p> <ul> <li>As written above, it is just a syntax error: the compiler doesn't know how to parse the list of numeric literals not separated by anything.</li> <li>If you separated the items by a comma, the compiler says "Oh, he is passing 12 parameters. Let me look for a function that takes 12 integer parameters... oh, I don't have one. Sorry." That gives your <code>no matching function for call to</code> error.</li> </ul> <p>So, one way to call your function is like this:</p> <pre><code>byte data[] = { 0xF0, 0x41, 0x36, 0x06, 0x21, 0x20, 0x01, 0x22, 0x1B, 0xF7 }; sendSysEx(10, data, true); </code></pre> <p>In C++11 you can get closer to what you want by initializing the list in the function call, something like <code>sendSysEx(10,{0xF0, 0x41, 0x36, 0x06, 0x21, 0x20, 0x01, 0x22, 0x1B, 0xF7}, true);</code>, however, you'll find that might run into another problem (depending on your toolchain): the compiler may assume that your initializer lists like that are lists of <code>int</code>s, not <code>byte</code>s, which will also cause a compiler error, unless you specifically told your compiler to assume integer literals to be 8 bits.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload