Using Menu's to Control Faders
Posted: 29 Oct 2019 02:37
Hi, so I'm trying to use a menu and a variable to control a fader.
I've got this working.
if (Menu.selection==0)Fader.x=0;
else if (Menu.selection==1)Fader.x=0.5;
else if (Menu.selection==2)Fader.x=1;
But not this
decl vari, i;
i = round(Fader.x*2);
if (Menu.selection==0)i=0;
else if (Menu.selection==1)i=1;
else if (Menu.selection==2)i=2;
Any help would be greatly appreciated!
I've got this working.
if (Menu.selection==0)Fader.x=0;
else if (Menu.selection==1)Fader.x=0.5;
else if (Menu.selection==2)Fader.x=1;
But not this
decl vari, i;
i = round(Fader.x*2);
if (Menu.selection==0)i=0;
else if (Menu.selection==1)i=1;
else if (Menu.selection==2)i=2;
Any help would be greatly appreciated!