Re: [PD] loading an .aif file into an array
Try: list camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [l2s] | read -resize $1 Bajo but really your life will be much easier when you rename your files so that they do not have spaces in the filenames. If your objective is just to load the AIFF, why not use bang | [openpanel] | read -resize $1 Bajo ??? Best, Derek On 5/31/10 3:00 AM, Camilo Cadavid Corredor wrote: [rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version. Is this an object? I still havent been able to upload an .aif file... I also tried the sugested: list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo | [l2s] | read -resize $1 well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array. My main objective is to simply load an .aif to play with it. I appreciate your help. -- ::: derek holzer ::: http://macumbista.net ::: ---Oblique Strategy # 204: What do you do? Now, what do you do best?' ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On May 31, 2010, at 2:00 AM, Camilo Cadavid Corredor wrote:[rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version.Is this an object?I still havent been able to upload an .aif file... I also tried the sugested:"list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo"|[l2s]|"read -resize $1"well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array.My main objective is to simply load an .aif to play with it.I appreciate your help.C. Cadavid C.Sorry. I guess I didn't make it explicitly clear that you need to download the file I linked to your pd path. Then you can use it like in the example.The file is attached. rc-filename-help.pd Description: Binary data rc-filename.pd Description: Binary data Dan Wilcoxdanomatika.comrobotcowboy.com ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On May 31, 2010, at 8:31 AM, Derek Holzer wrote:Try:"list camilocadavid/Secuencias/Bajo_fiesta1 80.aif"|[l2s]|"read -resize $1 Bajo"but really your life will be much easier when you rename your files so that they do not have spaces in the filenames.I respectfully disagree. Pd is not a very good "swiss army knife" if there isn't an easy way to handle spaces in filenames!Luckily there is [l2s], etc and I've been using it to work with files and dirs with spaces for some time now.I hope you don't suggest this as the solution to new pd users, I'm sure it doesn't give a very good impression ...I made a quick tutorial and I want to add a section to the pd floss manual. I created an account, but how do I add a page?I was thinking a page called "Dealing with filenames" etc would work under the Dataflow section. I can also put info about relative versus absolute paths. filename_with_spaces_tutorial.pd Description: Binary data Whenever questions like these come up, I think we should always add info to the pd-info wiki or the floss manual if we have a little time. Shared knowledge and all that jazz ...If your objective is just to load the AIFF, why not use"bang"|[openpanel]|"read -resize $1 Bajo"???Best,DerekOn 5/31/10 3:00 AM, Camilo Cadavid Corredor wrote:[rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version.Is this an object?I still havent been able to upload an .aif file... I also tried the sugested:"list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo"|[l2s]|"read -resize $1"well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array.My main objective is to simply load an .aif to play with it.I appreciate your help.-- ::: derek holzer ::: http://macumbista.net :::---Oblique Strategy # 204:"What do you do? Now, what do you do best?'" Dan Wilcoxdanomatika.comrobotcowboy.com ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
Hi Dan, go for it! The Dataflow section is a bit of a mess right now, and in need of a massive revision to simplify it, so don't rely on it for content or tone. Please make sure to read this before starting: http://en.flossmanuals.net/bin/view/PureData/WritingConventions You can add a new chapter at the top of this page: http://en.flossmanuals.net/bin/view/PureData/WebHome I haven't arranged the index in a while. On the whole I think the manual needs a lot of work before it is totally publishable, but new inputs are good news. Best! Derek On 5/31/10 1:36 PM, Dan Wilcox wrote: I made a quick tutorial and I want to add a section to the pd floss manual. I created an account, but how do I add a page? I was thinking a page called Dealing with filenames etc would work under the Dataflow section. I can also put info about relative versus absolute paths. -- ::: derek holzer ::: http://macumbista.net ::: ---Oblique Strategy # 178: What is the simplest solution? ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
I understand, when I open the patch you attached, the rc-filename object the pd recognizes it, but in a new patch, it doesnt work. Where can I download it from? how? On May 31, 2010, at 5:08 AM, Dan Wilcox wrote: On May 31, 2010, at 2:00 AM, Camilo Cadavid Corredor wrote: [rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version. Is this an object? I still havent been able to upload an .aif file... I also tried the sugested: list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo | [l2s] | read -resize $1 well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array. My main objective is to simply load an .aif to play with it. I appreciate your help. C. Cadavid C. Sorry. I guess I didn't make it explicitly clear that you need to download the file I linked to your pd path. Then you can use it like in the example. The file is attached. rc-filename-help.pd rc-filename.pd Dan Wilcox danomatika.com robotcowboy.com ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On Sun, 30 May 2010, Camilo Cadavid Corredor wrote: [rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version. Is this an object? I still havent been able to upload an .aif file... I also tried the sugested: list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo | [l2s] | read -resize $1 well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array. there was a mistake in those commands. Bajo is not to be part of the filename, so it should go in the last message box : list camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [l2s] | read -resize $1 Bajo I thought I had corrected that already (and that someone else also did) My main objective is to simply load an .aif to play with it. If you want to load a file without any fuss you just don't put spaces in the name... _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
I did that. I took all the spaces from the file name.. On May 31, 2010, at 11:40 AM, Mathieu Bouchard wrote: On Sun, 30 May 2010, Camilo Cadavid Corredor wrote: [rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version. Is this an object? I still havent been able to upload an .aif file... I also tried the sugested: list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo | [l2s] | read -resize $1 well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array. there was a mistake in those commands. Bajo is not to be part of the filename, so it should go in the last message box : list camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [l2s] | read -resize $1 Bajo I thought I had corrected that already (and that someone else also did) My main objective is to simply load an .aif to play with it. If you want to load a file without any fuss you just don't put spaces in the name... _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
[rc-filename] doesnt exist in my Pd. it is the extended 0.41.4 version. Is this an object? I still havent been able to upload an .aif file... I also tried the sugested:list camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo | [l2s] | read -resize $1well, after I created the 100 size Bajo named array, these comands didnt fit the file into the array. My main objective is to simply load an .aif to play with it.I appreciate your help. C. Cadavid C. Date: Wed, 26 May 2010 09:13:23 -0400 From: ma...@artengine.ca To: zmoel...@iem.at CC: cccada...@hotmail.com; pd-list@iem.at Subject: Re: [PD] loading an .aif file into an array On Wed, 26 May 2010, IOhannes m zmoelnig wrote: On 2010-05-26 03:33, Mathieu Bouchard wrote: On Tue, 25 May 2010, Dan Wilcox wrote: In this case, you'd use [camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [rc-filename] | [read -resize $1 Bajo woops, sorry. I didn't put the table name separately (ouch) that's why its called trickery What ? I can be making that mistake with anything at all, as long as I'm not even trying it and not proofreading myself at all. It's called trickery ? Who calls it trickery ? _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801 _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On 2010-05-26 03:33, Mathieu Bouchard wrote: On Tue, 25 May 2010, Dan Wilcox wrote: In this case, you'd use [camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [rc-filename] | [read -resize $1 Bajo woops, sorry. I didn't put the table name separately (ouch) that's why its called trickery mfgart IOhannes smime.p7s Description: S/MIME Cryptographic Signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On Wed, 26 May 2010, IOhannes m zmoelnig wrote: On 2010-05-26 03:33, Mathieu Bouchard wrote: On Tue, 25 May 2010, Dan Wilcox wrote: In this case, you'd use [camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [rc-filename] | [read -resize $1 Bajo woops, sorry. I didn't put the table name separately (ouch) that's why its called trickery What ? I can be making that mistake with anything at all, as long as I'm not even trying it and not proofreading myself at all. It's called trickery ? Who calls it trickery ? _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
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) fgmasdr IOhannes smime.p7s Description: S/MIME Cryptographic Signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
Or use [openpanel] get the file's location converted to a single symbol which [soundfiler] can use. For example, the following file loads fine with [openpanel] and [soundfiler]: /Volumes/one/derek/audio/84 endgroove.wav However sending the message read -resize /Volumes/one/derek/audio/84 endgroove.wav array1 to [soundfiler] results in the error: error: endgroove.wav: no such table Some day I'll get around to the working with tables and soundfiles section of the FLOSS Manual and this will be documented clearly. D. On 5/25/10 3:09 PM, 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) -- ::: derek holzer ::: http://macumbista.net ::: ---Oblique Strategy # 40: Decorate, decorate ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
if you have tons of audio files and many contain spaces you can 'automate' the renaming process with some freeware, on the mac I use 'renamer4mac' which parses libraries even with nested folders and replaces spaces (if there are) by anything you chose. On May 25, 2010, at 8:09 PM, 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) fgmasdr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
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. _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On Tue, 25 May 2010, jurgen wrote: if you have tons of audio files and many contain spaces you can 'automate' the renaming process with some freeware, on the mac I use 'renamer4mac' which parses libraries even with nested folders and replaces spaces (if there are) by anything you chose. I have a shell script named underscorify : for z in *; do a=$(echo $z | sed 's/ /_/'g) mv $z $a done I've used it for about ten years. You can either paste it in the terminal, or put it in a file that you run from the terminal. You first have to cd to the folder where you want to do this. _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
On Tue, 25 May 2010, Dan Wilcox wrote: In this case, you'd use [camilocadavid/Secuencias/Bajo_fiesta1 80.aif | [rc-filename] | [read -resize $1 Bajo woops, sorry. I didn't put the table name separately (ouch) _ _ __ ___ _ _ _ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] loading an .aif file into an array
a few little problems with this Firstly, the flag is -resize, you've put the dash after read. Also there seems to be a space in your filename, that always makes it tricky to refer to. Also check capitalization is right. If the underscore's in your file name, it should be in the tag. so: [read -resize filename arrayname( There's also some bits to get used to with the filepath, I can't remember off hand but I think to start from your home directory the file path should start with a / . If the file is in the same directory as your patch you can always write it's name without a file path. Also you can simplify this sightly by using [openpanel] like this: [O] (gui bang)| [openpanel]|[read -resize $1 Bajo(|[soundfiler] By clicking the bang you should be able to navigate to your file and then load it to your array. Hope this helps Andrew From: cccada...@hotmail.com To: pd-list@iem.at Date: Sun, 23 May 2010 18:25:08 -0500 Subject: [PD] loading an .aif file into an array Hi, I do not know the protocol to open an .aif file in MAC OSX 10.6.4. My current attempts are using a message that reads: read- resize camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo. This message is connected to the soundfiler's input. The array I created is called Bajo. The thing is I dont know which size should the array have. the underline between Bajo_fiesta is a space. Should it go, shouldnt it?It is pretty simple, but couldnt figure it out.Thanks Get news, entertainment and everything you care about at Live.com. Check it out! _ http://clk.atdmt.com/UKM/go/195013117/direct/01/ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] loading an .aif file into an array
Hi, I do not know the protocol to open an .aif file in MAC OSX 10.6.4. My current attempts are using a message that reads: read- resize camilocadavid/Secuencias/Bajo_fiesta1 80.aif Bajo. This message is connected to the soundfiler's input. The array I created is called Bajo. The thing is I dont know which size should the array have. the underline between Bajo_fiesta is a space. Should it go, shouldnt it?It is pretty simple, but couldnt figure it out.Thanks _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list