From the original SynthMaker forum (2004–2014), with its members’ names and dates.
faizzer ·
Hi guys, i wanna make an interface with buttons, so when i push the Red button, a red rectangle displays, and when i push the Black button, a black rectangle displays. I've made it until here (look at the osm), then, what's wrong with it?, that i can't get what i want?
Could you check my osm? thanks in advance 😉
stw ·
faizzer wrote: Hi guys, i wanna make an interface with buttons, so when i push the Red button, a red rectangle displays, and when i push the Black button, a black rectangle displays. I've made it until here (look at the osm), then, what's wrong with it?, that i can't get what i want?
Could you check my osm? thanks in advance 😉
You have to connect your outputs to an integer switch which switches to the last changed int. If you simply connect both they're just summed.
faizzer ·
thanks stw, you're right they were just summing, now it's working with the int switch
thanks! 🙂
trogluddite ·
Here's a modified version of that schematic that's more economical with modules, and saves the maths...
The precise positions of mouse click aren't needed - all that's needed is to know that they are within the correct mouse area, so you can make use of the trigger outputs from the mouse clicks.
The switch setup looks a bit strange at first, but connecting a trigger directly to an integer or float input has the meaning 'update this input when there's a trigger', with the value taken from the number box.
In fact you don't even need the zero box in this case, as zero is the default value when there's no number there.
faizzer ·
thanks trogluddite, you are right there is no need to calculate anything since i hace the correct mouse area. and i see it's easier to use the trigger outputs
🙂
Wrote something here? To have a post removed or your name hidden, write to [email protected].