sfplay~ query should be simple

themagicwoodshed's icon

is their any way i can open a sample into sfplay~ without using open. what i want is to be able to click a message box stating open 1.wav or open C:UsersLEEDesktopdrumsbassdrum1.wav. i dont want the open pop up menu to open at all. is that possible with sfplay~ if not what do i need to use. thanks.

lee

brendan mccloskey's icon

Hey Lee
you're right the answer is simple: right/ctrl click on ANY object and you can access a helpfile which demonstrates not just how to use the object, but also details common message formats and syntax. The answer to your query, and I quote:

"sfplay~ plays AIFF, NeXT/SUN(.au), WAVE, and Raw Data files of 1-32 tracks from disk. To play a file, you send sfplay~ the open message, then send it a 1 to start and a 0 to stop. open takes an argument to specify a filename in the search path....."

Max Patch
Copy patch and select New From Clipboard in Max.

Brendan