SACC

/ / navigation

openpanel

spigot
Time operations
Textfiles
Exercise


// openpanel



The object readsf~ plays an existing sound file— one that is saved on the hard disk.

readsf~ needs the message open [name of sound file]. Name of sound file refers to the place where the file is stored on a data storage device. If you want to use readsf~ in a patch that is saved in the directory Pd/Pd-patches/ to play a sound file named hello.wav that is also saved in the same directory, you only have to enter open hello.wav.

Sometimes the directory path names are complicated. You can find the full path name using openpanel. When it receives a bang, it opens a window with the available contents for all of a computer's drives. When you click on a file, openpanel enters the entire path for the file (as a symbol) in Pd:


You must open the soundfile in advance (a couple of seconds before you'll need it) using the "open" message. The object immediately starts reading from the file, but output will only appear after you send a "1" to start playback. A "0" stops it.