[PD] Size of a table

Steffen Juul stffn at dibidut.dk
Thu Jun 12 22:53:13 CEST 2008


On 11/06/2008, at 16.03, Andy Farnell wrote:

> On Wed, 11 Jun 2008 13:23:28 +0200
> Roman Haefeli <reduzierer at yahoo.de> wrote:
>
>> On Wed, 2008-06-11 at 12:09 +0100, 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
>>
>> hey, nice trick. thanks for sharing.
>>
>> roman
>
> Yeah, nice! Not seen that before, it's very useful. Thanks

Agreed. Neat indeed. I've added it to the Tips'n'Tricks page[0]. Hope  
that's ok.

[0] http://puredata.info/docs/tutorials/TipsAndTricks#getting-table- 
array-size




More information about the Pd-list mailing list