Hello all,
I'm trying to load audio files from a specific directory in arrays as soon as a patch opens. How do I do this?
Thanks in advance
Read specific audio file \[Noob\]
Hello all,
I'm trying to load audio files from a specific directory in arrays as soon as a patch opens. How do I do this?
Thanks in advance
Pd-extended OSX 10.5.8
The [soundfiler] object - right click, view help, use [loadbang] to send messages loading up the audio files. You must create an array or table for each audio file for this to work and I believe that soundfiler has a flag to -resize the array automatically. Ooh, and I just discovered that you can send a message to arrays to normalize the audio files which sounds just magical, though I wish that soundfiler did this (it can when writing the other direction, array to wav).
I've pondered shortcuts for loading all the files of one directory - the only thing I can think of is to rename the files in a sequential manner so that you don't have to write out every name to give to soundfiler. This is probably only worth it if you can make a script do it for you and if there are LOTS of audio files.
Does anyone have tips on loading entire directories into arrays at startup?
Lucider Improvised Funktronic Interface: Ubuntu Studio AMD64 10.04 -rt 2.6.33-4 // Phenom II 3.2x2, 2GB RAM, Asus mobo w/ hyper transport // Elo 15...
Thanks PonZo, that's helpful.
I'm having trouble with Pd recognizing file paths though. What would the message be if I wanted to read a file "sound.aiff" from the desktop on a mac?
Pd-extended OSX 10.5.8
/"hard drive name"/Users/"your user name"/Desktop/sound.aif
View the help file. Check the syntax on there - you need to specify the array that it's writing to, for example. Format should be automatically detected.
Lucider Improvised Funktronic Interface: Ubuntu Studio AMD64 10.04 -rt 2.6.33-4 // Phenom II 3.2x2, 2GB RAM, Asus mobo w/ hyper transport // Elo 15...
PonZo, you can use [folder_list] to dump out all the files in a directory.
Oops! Looks like something went wrong!