help for patcher for automatically change a track volume according to other tracks value
Hello
i want to do this: when ALL audio tracks in ableton form 1 to 8 are all to 0 volum then i want tracks 9,10 and 11 to go to 0,7 volume
If any tracks for 1 to 8 is different than 0, then i want tracks 9,10 and 11 to be to 0 volume
I have done this but there are some problems . It is a simplified version: 2 tracks to be checked and the 3rd to be adjusted accordingly
First problem is that when i move the fader in track 2 i get an error in the inspector. A part this i have anyway the result i want. The expression gives me the otuput 0 or 0.7 accordingly to the values of tracks 1 and 2
The other problems is that i always need to send an extra bang to send the value which is correctly set in max fader for tracks 3 to ableton.
I paste my code
Thanks for help
p.s.
it is 3 days i am going mad with the help of a.i. At certain point it start to repeat the same things over and over..it can help for a little bit, but then when there i sa problem it likely start to go wrong :)
First problem is that when i move the fader in track 2 i get an error in the inspector
It's because you send a set
message to [expr ]second inlet, which don't understand set messages. You can send it the float value directly.
The other problems is that i always need to send an extra bang to send the value which is correctly set in max fader for tracks 3 to ableton.
I didn't experience this, but had the following error message for each track 3 update:
Changes cannot be triggered by notifications. You will need to defer your response.
I don't 100% understand the reason for this, but throwing a [deferlow] before sending the value to track 3 volume seems to do the trick.
Alternatively, you can use [live.remote~] instead of [live.object] (at the price of extra resources)
ok i rather get the second, i am not using many resources in this project so it is fine
Thank you, very nice!
Now to develop the project i will copy for X times all the code of each tracks. But i see there is a t b f that get input from track 2 before going in the expression. In this case what shall i do?Just add as many f as i need?
Same things for the other tracks , those controlled. Just send the output of the expression to the live.remote of each tracks, right?
One very good thing would be to rise and lower the volume of the track 3 smoothly and not abrutply as it does now..i have no ide for it :)
For more than 2 two tracks I would do a list-based approach, much more scalable.
And for the smooth transition: [line~]
let me understand. Yu made the example.Where the incoming track volume fnum i should substitute with all the code we used before the expression? Then the output of th eline go to controlled tracks?
Exactly!
great! thank you