[PD] loading an .aif file into an array

Dan Wilcox danomatika at gmail.com
Tue May 25 21:44:01 CEST 2010


On May 25, 2010, at 4:40 PM, Mathieu Bouchard wrote:

> On Tue, 25 May 2010, IOhannes m zmoelnig wrote:
> 
>> On 2010-05-24 01:25, Camilo Cadavid Corredor wrote:
>>> 
>>> "read- resize camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo"
>> 
>> Pd currently has no escape mechanism to write symbols containing spaces.
>> therefore, don't use filenames containing spaces (unless you are
>> prepared to do some "trickery")
> 
> "list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo"
> |
> [l2s]
> |
> "read -resize $1"
> 
> as long as all spaces are single and are not at the beginning nor end.

This is essentially the method I use in rc-filename, which formats a filename into a single symbol, spaces or not.

In this case, you'd use

[camilocadavid/Secuencias/Bajo_fiesta1 80.aif <
|
[rc-filename]
|
[read -resize $1 Bajo<


--------
Dan Wilcox
danomatika.com
robotcowboy.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100525/5473a6a6/attachment.htm>


More information about the Pd-list mailing list