Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: recieve Sysex messages

  1. #1
    Junior Member
    Join Date
    Dec 2020
    Posts
    4

    recieve Sysex messages

    Hello!
    Hope you can help me, probably is easy the answer but I am totally struggling with Sysex.
    I am sending via Webmidi, SysEx message to Teensy

    for example

    Code:
    WebMidi.getOutputByName('Teensy MIDI').sendSysex(66, [10, 23, 31, 48, 52, 100]);
    I am trying to get in Teensy the array [10, 23, 31, 48, 52, 100] to assign these values to different variables.

    I know that this function receives Sysex, but how can I get this array?

    Code:
    void mySystemExclusive(byte *data, unsigned int length) {
    
      
    }
    Thanks so much in advance!

  2. #2
    Member
    Join Date
    Feb 2020
    Location
    Dublin, Ireland
    Posts
    55
    Hi,
    Take a look at the example
    EXAMPLES|TEENSY|USB_MIDI|InputFunctionsComplete
    It should help you,
    All the best,
    Alan

  3. #3
    Junior Member
    Join Date
    Dec 2020
    Posts
    4
    Hello AlanK,
    thanks for the reply.
    yes, I started with this example. I think it is used a function calls "printBytes" to transform the income values to HEX (hexadecimal) values.

    I wondering if there is a simple way without this conversion. But now I found another example calls "InputRead" that uses usbMIDI.getSysExArray(). I think that is what I am looking for.

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •