Forum

Easy IOBox issue that I can't work out

Hi all again.
I’ve come across an issue that really shouldn’t be to challenging.

Basically I want to have say 5 toggles… Each toggle toggles a set number and the number then goes to a send.
In pure data it would look like this:

0 0 0 <— Toggles
| | |
[2( [3( [4( <— Numbers
| / /
| / /
| / /
| / /
|/------
|
|
[2} <----------- Number will change depending on what toggle is hit.
|
|
[s param](s param)

So far I’ve tried:

0 0 0
| | |
[2( [3( [4(
| | |
| | |
[S t a l l o n e} | [2](2)
3 <----- Spread
4

But I don’t know how to get it into 1 IObox that will change depending on what button is hit.

Thank you.

The formatting in the above post went weird. Here’s what I do in PD which I want to do in Vvvv :)

Switch + MultiFlipflop or spreaded with Select and S+H, see patch.

if you need the last changed value look for the LTP node.

multi_bang.v4p (9.3 kB)

Thank you Tonfilm. That’s exactly what I needed. Seems like a long way of doing things compared to PD but hey; it works :)

Thanks again.

its a different evaluation model. PD uses an event based push evaluation, which means things only happen if anyone or anything triggers something and then it propagates thru the graph, while the vvvv graph has a frame based pull evaluation, where the lower leaf nodes of the graph pull the data frame by frame. the pull evaluation is great for video animation and in my opinion much better to understand when it comes to bug fixes and timing problems.