[PD] Size of a table

Enrique Erne enrique at netpd.org
Wed Jun 11 15:32:42 CEST 2008


marius schebella wrote:
> Hans Roels wrote:
>> Apart from [soundfiler] I use this trick to get the size of any array 
>> (audio or data) in pd vanilla:
>> (array1 = the name of an example array)
>>
>> bang
>> |
>> [expr size("array1")]
>> |
>> print
>>
>> or replace the expr with [expr size("$s2")] and connect a message 
>> [symbol array1( to the second inlet of this expr object
>>
>> hans r
> 
> hi,
> that's cool. did not know that expr can do that! are there more features 
> of expr that are hidden or unknown??
> marius.
> 

very nice indeed. i remember sven posted once a way to directly access 
the value of [value] with expr but i can't remember.
eni




More information about the Pd-list mailing list