No internet connection
  1. Home
  2. How to

Send Midi SYSEX message from Soundflow?

By Philip weinrobe @Philip_weinrobe
    2024-10-11 22:35:01.951Z

    Hello!
    I am trying to send a simple sysex message via midi.
    there is no sysex option from the midi drop down menu.
    the string i want to send is:
    240 28 96 1 0 124 70 69 52 54 66 67

    thank you!
    Philip

    • 5 replies
    1. T
      Torsten Zumhof @Torsten_Zumhof
        2024-10-12 12:08:19.817Z2024-10-12 16:17:50.029Z

        Hey Philip,

        I have a Faderfox connected via USB and to switch the surface I have to send SysEx Data.
        I do it this way:

           const sysExMessage = [0xF0, 0x00, 0x00, 0x00, 0x4E, 0x2C, 0x1B, 0x4E, 0x28, 0x10, 0x4E, 0x24, 0x11, 0xF7];
        
        
        sf.midi.send({
            outputNum: 8,
            midiBytes: sysExMessage
            externalMidiPort: "Faderfox EC4"
        });
        

        I think you have to translate your string to hexadecimal first.

        1. Thanks Torsten!

          The message just needs to be an array of numbers (0..255) representing each byte of the midi message. Those numbers can be encoded using hexidecimal notation, as you did (0x...), or as regular decimals.

          In Philip's case, he could do:

          
          const sysExMessage = [240, 28, 96, 1, 0, 124, 70, 69, 52, 54, 66, 67];
          
          sf.midi.send({
              midiBytes: sysExMessage,
              externalMidiPort: "Name of the external port to send to"
          });
          
          
          1. PPhilip weinrobe @Philip_weinrobe
              2025-03-28 16:18:30.899Z

              hi everyone
              went to fire up this script today (it had been a few months, working when i last left it) and now i get an error.

              here's the exact script i'm running

              const sysExMessage = [240, 28, 96, 1, 0, 124, 70, 69, 52, 54, 66, 67];
              
              sf.midi.send({
                  midiBytes: sysExMessage,
                  externalMidiPort: "H3500"
              });
              

              and here's the error:

              28.03.2025 12:18:00.35 <info> [Backend]: !! Command Error: SYSEX [user:default:cm2dheudb00004w10u34turlm]:
              Object reference not set to an instance of an object. (SYSEX: Line 4)
                  System.NullReferenceException: Object reference not set to an instance of an object.
                 at SoundFlow.Shortcuts.ExternalMidiController.Send(String destinationName, MidiPacket[] packets) + 0x24
                 at SoundFlow.Shortcuts.Automation.Actions.MidiSendAction.Execute(MidiSendResult result) + 0x44
                 at SoundFlow.Shortcuts.Automation.AutoAction`1.<Run>d__25.MoveNext() + 0x16c
              
              << Command: SYSEX [user:default:cm2dheudb00004w10u34turlm]
              

              any help appreciated!

              1. Hi Philip,

                That looks like a SoundFlow bug. Please send us a Help/Issue report so we have your full log files and can track it.

                https://soundflow.org/docs/help#help-issue

                1. PPhilip weinrobe @Philip_weinrobe
                    2025-03-28 21:18:59.599Z

                    i jumped on with Chad and solved it. seems to have been local to my system