Hi, I'm newbie in pd.
Maybe this topic has been commented before but I didn't find it.
I'm wondering to know if there is any way to play an aiff file without having to open it every time I want to play it.
Thanks
Preload sounds
Hi, I'm newbie in pd.
Maybe this topic has been commented before but I didn't find it.
I'm wondering to know if there is any way to play an aiff file without having to open it every time I want to play it.
Thanks
You can load it into an array. Create an array, let's say you name it "sound", then [bang] -> [openpanel] -> [read -resize $1 sound( -> [soundfiler]. You can connect a number box to [soundfiler], it will output the size of your sound. Check the help files to learn some ways to play it ( part B in audio examples).
Lucien
Hi damia,
I made an abstraction that loads and remembers the audio files, just because they are the argument of the abstraction itself. The audio files have to be located in a directory named samples in the same directory of the m-sampleplay~ pd file. You just have to write the name of the file as first argument and without extention. The second atgument can be 0 (loop off) or 1 (loop on).
Hope it helps.
Cheers
just seen that you need to play aiff so you have to substitue wav with aiff in the right place in m-sampleplay~.pd ... you will find it!
Oh! thank you very much LucienR & alistair_blunt.
I'll try it!
Oops! Looks like something went wrong!