Hey,
I have some problems in PD (again).
I attached a patch that is not everything I made, but I deleted everything that does not beong to my problem.
I want to change the volume by a color controlled detection. That is made with processing and the information is send via OSC to pd. These are numbers between 0 and 240. The transmission is made by "/y".
BUT the volume should only be changable when it is activated by chlicking that key "n". I solved all the things till this moment. But if the n is pressed again the last number that was transmitted should be fixed. I tried to use a toogle, but after it was deactivated the toggle sends 0 and so the volume is 0.
In other programming languages I would you if then else expressions and a variable that saves the number, but no idea how to this in PD.
The patch is maybe a bit complicated, because I tried things that didn´t work, but I didn´t deleted them to show you what I´ve tried. Hope the patch is useful.
Thanks a lot,
Anna