[PD] Vanilla [list-s2l] prototype
Mathieu Bouchard
matju at artengine.ca
Fri Nov 20 16:30:23 CET 2009
On Fri, 20 Nov 2009, Georg Werner wrote:
> [foreach] sounds good - but i could not find it ... give me a hint, please.
It's part of GridFlow.
http://gridflow.ca/help/foreach-help.png
http://gridflow.ca/download/gridflow-0.9.6.tar.gz
http://gridflow.ca/download/packages/gridflow-0.9.6-macosx104-i386.tar.gz
http://gridflow.ca/download/packages/gridflow-0.9.6-ubuntu-karmic-i386.tar.gz
\class ForEach : FObject {
\constructor () {}
\decl 0 list (...);
};
\def 0 list (...) {
t_outlet *o = outlets[0];
for (int i=0; i<argc; i++) {
if (argv[i].a_type==A_FLOAT) outlet_float( o,argv[i]);
else if (argv[i].a_type==A_SYMBOL) outlet_symbol(o,argv[i]);
else RAISE("oops. unsupported.");
}
}
\end class {install("foreach",1,1);}
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
More information about the Pd-list
mailing list