hello guys, I have really a newbie question...
I would like to pass a integer, only when it's equal to some numbers, something like this.
Some help please?
[NEWBIE] pass list
hello guys, I have really a newbie question...
I would like to pass a integer, only when it's equal to some numbers, something like this.
Some help please?
Here is a way to do it. I would be curious if somebody have a better design in mind:
@Borisssa You need a [list-drip] to turn the list into a stream. If you need the output as a list and not a stream than you will also need to reconstruct the list which can be done with [list store] and [append $1(. Generally it is best to keep things a stream when you can but sometimes you need to store those numbers for later use.
My standard way of doing this along with showing how messages can be used instead of [list-store] to turn stream into list.
Whenever someone posts something from list-abs I can not help but make a replacement, won't be long now before I have completed updating all of it, good number get fancy new features as well. I went with dynamic patching in my version so probably slower on the creation but faster in operation. No helpfile yet but it is a drop in replacement for [list-sieve] so its helpfile will tell you what you need.
sift.pd
Edit:Fixed some goofiness.
@Borisssa Look closer, [add2( is a message, not an object. From the [message( help file:
Sift is functionally identical as the previous patch I posted, all that extra stuff is just telling pd how to create it for us. Dynamic patching seems complex at first, you just need to bang your head against it for awhile.
@oid Excellent! Thanks!
Oops! Looks like something went wrong!