Trevliga Spel forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Sysex Script: bytes after XX

2 posters

Go down

Sysex Script: bytes after XX Empty Sysex Script: bytes after XX

Post by jordikt Fri Apr 26, 2024 3:52 am

It seems taht the bytes after XX are not detected.

As example, I am trying to detect status of Display Name/Value of Mackie control with a Script button.

This script always shows "2" everytime I press the Display Name/Value button:
[ (sysex:F0 00 00 66 14 XX 50 61 67 65 3A 30 31 2F 30 32 F7) {text: 1} ]
[ (sysex:F0 00 00 66 14 XX 20 F7) {text: 2} ]

If I reverse the script order,  the button always shows "1" everytime I press the Display Name/Value button:
[ (sysex:F0 00 00 66 14 XX 20 F7) {text: 2} ]
[ (sysex:F0 00 00 66 14 XX 50 61 67 65 3A 30 31 2F 30 32 F7) {text: 1} ]

Maybe I am doing something wrong, but it seems the bytes after XX are not recognized.
jordikt
jordikt

Posts : 99
Join date : 2024-02-10

Back to top Go down

Sysex Script: bytes after XX Empty Re: Sysex Script: bytes after XX

Post by Admin Fri Apr 26, 2024 9:59 am

It isn't documented anywhere, but the script button only reacts to received sysex commands, not sent sysex commands.

TBH, I don't remember if this is due to a design decision or if I just didn't implement it.
Admin
Admin
Admin

Posts : 965
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Sysex Script: bytes after XX Empty Re: Sysex Script: bytes after XX

Post by jordikt Fri Apr 26, 2024 10:56 am

The script I posted is reacting to received sysex command, it's not sending sysex.

The problem is that the script is not reacting to the bytes after XX. It reacts only to the bytes before XX.

I try to explain better the issue.

Let's say we have two buttons of the SD routed to the mackie ports of Cubase:

- 1st button press the Mackie button "Display Name/Value" 
- 2nd button is a script button with this code:
[ (sysex:F0 00 00 66 14 XX 50 61 67 65 3A 30 31 2F 30 32 F7) {text: 1} {wait:500}]
[ (sysex:F0 00 00 66 14 XX 20 F7) {text: 2} {wait:500}]
[ (sysex:F0 00 00 66 14 XX 87 F7) {text: 3} {wait:500}]

When I press the 1st button, the following sysex is sent:
F0 00 00 66 14 12 00 50 61 6E 20 20 20 20 20 20 20 20 20 20 20 20 20 4C 65 66 74 2D 52 69 67 68 74 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 61 67 65 3A 30 31 2F 30 32 F7

After pressing that 1st button, the 2nd button shows the text "1", then the text "2" and finally the text "3", with a delay of 500 ms in between.
jordikt
jordikt

Posts : 99
Join date : 2024-02-10

Back to top Go down

Sysex Script: bytes after XX Empty Re: Sysex Script: bytes after XX

Post by Admin Fri Apr 26, 2024 11:36 am

OK, I see what you mean; I'm on it.
Admin
Admin
Admin

Posts : 965
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

jordikt likes this post

Back to top Go down

Sysex Script: bytes after XX Empty Re: Sysex Script: bytes after XX

Post by Admin Fri Apr 26, 2024 11:56 am

I have fixed it.

Version 3.10.0.2
Admin
Admin
Admin

Posts : 965
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Sysex Script: bytes after XX Empty Re: Sysex Script: bytes after XX

Post by jordikt Fri Apr 26, 2024 1:14 pm

Works perfect!

Thanks!
jordikt
jordikt

Posts : 99
Join date : 2024-02-10

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum