Bug: VBAN txt command Button[i].State

VB-Audio Network Protocol and applications
Post Reply
crixionz
Posts: 2
Joined: Sun Mar 29, 2020 7:04 pm

Bug: VBAN txt command Button[i].State

Post by crixionz »

Hi!
I think there's a bug when using Button[ì].State = 1.

When I do Button[5].State = 1 from a VM Macro Button, it works as expected and the 5. Macro button is pressed.
However, when I send this command via VBAN, the action performed is actually Bus[5].Sel = 1.

I'm assuming VM's 5. button is targeted instead of VM Macro's 5. button, but I'm sure you already know :D
No big deal, I don't think anybody noticed yet and it doesn't break my setup! No rush. I just noticed it and wanted to help. 8-)
Thank you for developing Voicemeeter, it's great! 8-)
Vincent Burel
Site Admin
Posts: 2019
Joined: Sun Jan 17, 2010 12:01 pm

Re: Bug: VBAN txt command Button[i].State

Post by Vincent Burel »

yes, you missed the "Command" prefix:
Command.Button.State = 1

The syntax interpreter is optimized and uses just some letters to identify the command, so
Bus.Sel = 1; could be written by "Banana.Selection = 1;"
crixionz
Posts: 2
Joined: Sun Mar 29, 2020 7:04 pm

Re: Bug: VBAN txt command Button[i].State

Post by crixionz »

Ohhh, I see, thank you!
My bad, I didn't read the documentation properly and only paid attention to this example:
Untitled1.png
Untitled1.png (27.57 KiB) Viewed 34886 times
And thank you for explaining how the interpreter
works! :D cool stuff
Post Reply