[PD] Handling numbers read from a file

Jack jack at rybn.org
Wed Mar 3 14:01:43 CET 2010


If you have a list like [34 46 23 ...( and a [table mytab].
Then [list length] -> [resize $1( -> [s mytab] should help.
Then you send a message [0 34 56 23 ...( -> [s mytab].
++

Jack


Le mercredi 03 mars 2010 à 09:23 +0100, Matteo Sisti Sette a écrit :
> Hans Roels escribió:
> > There's a simple solution to know the size of an array in Pd vanilla (it 
> > has been posted on this list before). If your array is called example, 
> > send a bang to
> > [expr size("example")]
> > 
> 
> That's great!!
> I didn't know that, and I so often needed it!
> Thanks a lot.
> 
> However in this case, when you read the numbers from a file, you must 
> count them _prior_ to storing them into the array.
> Or is there a way to send a list of numbers to an array and have it 
> automatically resize to the list length?
> 
> 
> 






More information about the Pd-list mailing list