Page 1 of 1

A switch to enable/disable sending of Z for Multiball object

Posted: 09 Jan 2012 06:57
by Alexey Popoff
Hi all,

I'm working on a template where I have a Multiball object acting as a simple XY pad. The XY pad controls certain effect parameters in Traktor. I like the fact that Multiball outputs Z variable which I can use to enable effects in Traktor when the XY pad is being touched, but I don't want it to work like that all the time.

I'm looking for a way to add a switch object to my template which would enable/disable the "touch sensitivity" of my XY pad. In other words, I need that switch to either temporarily disable sending of Z from the Multiball object or make it so that it sends 0 as long as the switch is off. I could of course easily create this type of functionality via a modifier inside of my mapping in Traktor, but it's a pretty complex mapping as it is and so I don't want to overcomplicate it with unnecessary condition checks.

I tried creating a script within the Multiball object that executes on any change to Z and includes a simple conditional statement that checks if Switches.x equals 0 (i.e. switch is off) and if yes, sets Z to 0, but I'm getting some strange results where touching the Multiball object somehow puts the switch on. Obviously, I'm doing something wrong here :roll: Any advice on how to best implement this type of switch would be highly appreciated.

Thank you.
--
Best Regards,
Alexey Popoff

Re: A switch to enable/disable sending of Z for Multiball ob

Posted: 09 Jan 2012 07:18
by Alexey Popoff
Nevermind. I figured it out! :)

I don't have to output Z! I created my own variable named "Zmod". It equals z*Switches.x which automatically sets output to 0 when the switch is in a certain position. Mapped a CC message to it and it's working exactly as I wanted it to work. Easy!

Thanks to everyone who was going to reply :)
--
Alexey Popoff
Alexey Popoff wrote:Hi all,

I'm working on a template where I have a Multiball object acting as a simple XY pad. The XY pad controls certain effect parameters in Traktor. I like the fact that Multiball outputs Z variable which I can use to enable effects in Traktor when the XY pad is being touched, but I don't want it to work like that all the time.

I'm looking for a way to add a switch object to my template which would enable/disable the "touch sensitivity" of my XY pad. In other words, I need that switch to either temporarily disable sending of Z from the Multiball object or make it so that it sends 0 as long as the switch is off. I could of course easily create this type of functionality via a modifier inside of my mapping in Traktor, but it's a pretty complex mapping as it is and so I don't want to overcomplicate it with unnecessary condition checks.

I tried creating a script within the Multiball object that executes on any change to Z and includes a simple conditional statement that checks if Switches.x equals 0 (i.e. switch is off) and if yes, sets Z to 0, but I'm getting some strange results where touching the Multiball object somehow puts the switch on. Obviously, I'm doing something wrong here :roll: Any advice on how to best implement this type of switch would be highly appreciated.

Thank you.
--
Best Regards,
Alexey Popoff