Troubleshooting
Multi Switches - how to create "radio" effect with a script
Started by szymonfortuna on .
Sign in or create an account to join the conversation.
Hello,
I need to create a radio effect for the Multi Switches using a script. I can't use the built in Radio function cause I need to be able to turn off the currently active switch...
I came up with this script on expression x, that works if I create each switch individually... I need 25 switches on each of my template...
With Multi switches the whole process is a lot simpler.
Here's my code for individually created switches. Is there a way to adjust the code so it gives the same effect in Multi Switches array?
Switch1:
if((x)==1)
{
(Switch2.x=0); (Switch3.x=0);
}
Switch2:
if((x)==1)
{
(Switch1.x=0); (Switch3.x=0);
}
Switch3:
if((x)==1)
{
(Switch1.x=0); (Switch2.x=0);
}
I need to create a radio effect for the Multi Switches using a script. I can't use the built in Radio function cause I need to be able to turn off the currently active switch...
I came up with this script on expression x, that works if I create each switch individually... I need 25 switches on each of my template...
With Multi switches the whole process is a lot simpler.
Here's my code for individually created switches. Is there a way to adjust the code so it gives the same effect in Multi Switches array?
Switch1:
if((x)==1)
{
(Switch2.x=0); (Switch3.x=0);
}
Switch2:
if((x)==1)
{
(Switch1.x=0); (Switch3.x=0);
}
Switch3:
if((x)==1)
{
(Switch1.x=0); (Switch2.x=0);
}
Subject: Re: Multi Switches - how to create "radio" effect with a scr
I've got a possible solution. It checks which pad was pressed and resets all others. Possibly there's a nicer way but this is one way to go, added comments to the script.The only problem remaining is when you turn off a pad and then try to turn it on again. You need to press it a second time.
Cheers!
MrCorba
CustomRadioSwitches.jzml
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Hey! Thanks for the hint. Yeah it gives the radio effect. But I always get this issue when using with ableton locators…I attached the ableton project and your template with assigned midi.
When you play a track in ableton it triggers locators and make them loop…
Do you know how to find a way around it?
Custom Radio Switch test.zip
Subject: Re: Multi Switches - how to create "radio" effect with a scr
I don't quite understand your issue. You don't want the switches to trigger the locators? If so, then why are they mapped to the corresponding notes of the switches? Just unmap them (they are currently mapped in the set you uploaded, that is why they are triggering the locators)
If not, then what is the problem exactly? The switches are triggering the locators fine.
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Each locator reflects a different section of a song. (ex. verse, chorus, bridge). Midi clips with a midi note are used to give the visual feedback on my iPad showing which section is currently being played.
I need to have the same midi notes mapped to locators to be able to switch between sections.
THe issue here is that somehow the midi note turns the pad on and that pad sends a message to retrigger the locator. I want the locator to be triggered only by pressing the pad on iPad and not from ableton.
Here's the working example (attachment) I managed to create but using switches separately.
I wanted to adapt it to multiswitches or pads so the mapping becomes easier and less opportunity for mistakes… and it's easier to work with a group of switches when you have to create 20 of them time 25 pads for each song etc...
Separate Working Radio Switches.zip
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Did you not see my other post to your other thread? I think they are the same questions no?You need to use something other than the x variable to display the visual (like "light" variable or "colors" attribute). If you must use "x" variable, then you need code to prevent the MIDI feedback (but that will be difficult cuz pads and switches don't have a "z" variable)
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Hey!Yeah I saw your other post but after this one! Thank you for the hints!! I'll try to create some script and mess around with the colors!
Subject: Re: Multi Switches - how to create "radio" effect with a scr
I think this should do what you want, it's a bit different. It uses the notes 0-2 to listen from ableton which section is playing controlling the light attribute, but is using CC 0-2 to control the locators.Lemur Visual Feedback.jzml
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Hey!! Thank you for your solution. I'm sorry for the late replay but I don't have a regular internet connection at the moment!
The idea is great and does the job….but
…there's a bug somewhere and I spent hours trying to fix it and don't know how. When i press play in ableton some of the pads change to white and black…and stay that way.
I attached a lemur template with ableton test project…
I'd appreciate if you'd find a sec to have quick look on it.
Visual Feedback 25Pads.zip
Subject: Re: Multi Switches - how to create "radio" effect with a scr
I would like to take a look for you but unfortunately I'm still stuck on Ableton Live 8, so that's a bit of a hassle;) There were two things I saw in the project that might be the problem:
- The light attribute of the pads was set to {0,0,0}, maybe that's messing with the script somehow. Try to remove that.
- The button with Song1 has the same midi address as one of the pads.
If that doesn't work someone with live 9 has to take a look, and I'll return to my cave....
Cheers!
MrCorba
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Hey! I see.Could you just check this lemur project with your ableton version? I'm wor=ndering if you get the same result.. In terms of the script I didn't change anything but adding more pads..
In ableton you just need to create a couple of midi clips and locators...
I will check those two suggestions you gave me too...
Oh that one button shouldn't be the reason cause I was checking everything with the project I got from you, just added more pads...
Subject: Re: Multi Switches - how to create "radio" effect with a scr
Any luck so far?I'll take a look at it tonight, when I have a computer running ableton;)
Cheers
Subject: Re: Multi Switches - how to create "radio" effect with a scr
It works! I even managed to apply the script to the multi switches and get a nice visual effect that leeds from one section to another.When I check if everything works fine I'll post the project here so either you or anybody else could use it...I'll let you know shortly! Thanks for the support!
Subject: Re: Multi Switches - how to create "radio" effect with a scr
I hope you can still have look on what I created…(attachement) it was working fine for one set of switches… when I added another set (midi notes from 25-49) and tried to simulate with midi clips in ableton… it freaked out again… weird cause I wasn't messing around with scripts that much…everything seems to look right..
MultiSwitches Still Bugy.jzml