-
Ualrus
posted in technical issues • read more@lacuna Excellent! With that followed by a "reverse spigot" I did it.
-
Ualrus
posted in technical issues • read moreHello everyone! I'm starting to learn about puredata. I have been using plugdata for a couple of months for a project of mine, and I'm stuck with some "basic" functionalities that for some reason I can't find already implemented. (Apparently plugdata comes with a list-find patch, but for some reason I don't have it installed.)
I want to write the following patch, but I'm breaking everything while trying. (Actually crashing my computer.) Any help is appreciated. :]
The patch:
It should have two inlets, a float and a list.
If the float doesn't belong to the list, it outputs the float to a left outlet.
If the float belongs to the list, it outputs the index of the list the float appears in, to a right outlet. (We can assume there are no repeats in the list.)
Importantly, the list is going to be "fixed" while the float is going to be the one changing by the user; this is regarding hot/cold stuff or priority stuff.
Thanks in advance!