Switch to last set value?

Sep 11, 2013 at 3:25am

Switch to last set value?

How do I create a switch that sends the last set value?

Right now I’m trigging a bang to the inlet of the number at the same time as I select the input. Feels like I’m forgetting an object here.

<code>

– Pasted Max Patch, click to expand. –

</code>

#264953
Sep 11, 2013 at 3:53am

a classic message-order issue; the value is being sent before the switch has been switched to accept the value you want. use trigger to ensure counter is updated before a value is sent to one of switch’s inlets. remember message order is right-to-left

<code>

– Pasted Max Patch, click to expand. –

</code>

#264962
Sep 11, 2013 at 4:22am

@floatingpoint Thanks.

Re-read my question and I think I asked it wrongly :)

My question was more if there exists an object where you don’t need to patch as many cables to each number.

#264969
Sep 11, 2013 at 4:52am

So here’s what I did instead:

<code>

– Pasted Max Patch, click to expand. –

</code>

#264972
Sep 11, 2013 at 5:53am

hard to see what you want to do, [funnel] maybe ? [cycle] ?

#264979
Sep 11, 2013 at 6:32am

probably [funbuff] is what you want

#264982
Sep 11, 2013 at 6:44am

@AHLSTROMINFO: where is your input data coming from?

This looks like a very “standard” sequencer setup, am I right? In which case I’d just use Multislider with the “fetch $1″ message.

#264985

You must be logged in to reply to this topic.