Page 1 of 1

Enable/Disable a Ducking Function

Posted: Mon Feb 15, 2021 7:49 pm
by jallen
I have a ducking function I would like to be able to enable/disable by pushing a button, is this possible?

Ducking button 2 position
- When button is pushed, VAIO auto mutes when input 4 has level > -40.
- When button is not pushed, VAIO does not auto mute.

I have the mute on input working but it mutes anytime input on 4 > -40, I want to be able to disable this at the push of a button.

Re: Enable/Disable a Ducking Function

Posted: Wed Feb 17, 2021 9:09 am
by Vincent Burel
you can use these instruction to act on MacroButtons (directly in MacroButton)

Code: Select all

Command.Button[i].State = 0 or 1;	//Change Macro Button State
Command.Button[i].StateOnly= 0 or 1;	//Change Button State only
Command.Button[i].Trigger= 0 or 1;	//Change Trigger Enable State
or through VBAN network if you want to change it on another PC:

Code: Select all

SendText("vban1",  Command.Button(2).Trigger =1;);

Otherwise directly by API functions:

MacroButtons function:
Coming with version 3.0.1.4 / 2.0.5.4 / 1.0.7.4 it’s now possible to remote some basic MacroButtons functions to PUSH or RELEASE a given button, change the displayed state or the trigger enable status. This is given by basically 2x functions:

Code: Select all

long __stdcall VBVMR_MacroButton_GetStatus(long nuLogicalButton, float * pValue, long bitmode);

long __stdcall VBVMR_MacroButton_SetStatus(long nuLogicalButton, float fValue, long bitmode);
And the synchronization function to know if there has been a change in MacroButtons. See next page to get more information.

Code: Select all

long __stdcall VBVMR_MacroButton_IsDirty(void);

Re: Enable/Disable a Ducking Function

Posted: Fri Feb 19, 2021 3:07 am
by jallen
Works Perfect! If I would have updated Potato, maybe I would have been reading the newer manual......

Thank you