• SONAR
  • How to send Sysx via CAL
2016/10/05 08:24:05
Bassman002
HI:)
 
Does anybody know exactly how to send Sysx Commands via CAL?? 
It is possible, but I can't find the correct Syntax...
For sure I could send it within the Sysx Window in sonar, but I would like to have a key command for.
 
I should send Data like:
 
F0 43 10 3d 19 00 01 F7
or
F0 43 10 3d 1A 00 00 F7
 
Thanks;)
 
Bassman.
 
2016/10/05 09:27:22
promidi
Here you go.  Remember Cal is case sensitive

(do
    (sendMIDI -1 -1 SYSX 43 10 3d 19 00 01)
)

or

(do
    (sendMIDI -1 -1 SYSX 43 10 3d 1A 00 00)
)


2016/10/06 13:39:39
Bassman002
Hi:)
 
Without F0 and F7 as I see, but how can I set the right Midiport?? Should send it on the 3rd Port...
Sorry, but can't find good information on CAL in Internet.
 
Thank you;)
Bassman.
 
2016/10/06 17:55:28
promidi
This is an excerpt from the CAL Language programming guide that deals specifically with the SENDmidi command.   The number that sets the port number is the first "-1" in the examples I gave you before

Hope this helps.

(sendMIDI <port> <channel> <kind> <data1> [[<data2>]….])

You can send a MIDI event during a CAL program with this function.
Use ‘port’ as the port number (0 .. 15) you want to send over. If ‘port’ is set to -1, the function will send the message through all ports. The ‘channel’ variable is the channel number (0 .. 15) and -1 will set the function to send over all channels. The ‘kind’ constant is one of the recognised event types such as “NOTE” or “CONTROL” just like with the “insert” function. Use ‘data1’ and ‘data2’ for the information to be sent. Not all event kinds use both data bytes, and you must use the proper formatting of the data bytes for the event in question. ‘data2’ is only valid for “NOTE”, “CONTROL” , and “KEYAFT”. Remember, MIDI data bytes must be between 0 and 127 except for type “SYSX” (system exclusive message).
2016/10/07 08:40:58
mudgel
You'll find a whole heap of CAL resources on my Onedrive in the Sonar/CAL folder.

https://1drv.ms/f/s!Ahg7GEVUP0HfzHQrOR1Fbrn72zMj
2016/10/07 23:13:28
Bassman002
@mudgel
@promidi
 
that's a nice joerney for to find a description of CAL:)  Thanks! I've always looked for CAL and found C/AL, nothing else.....thank you;)
 
Now the things go like they should go!!
 
Bassman.
 
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account