Sfplay wont load file

balam's icon

Hi, I have estrange problem with sfplay,
it wont open a file , even is it is on ./example folder

I like to add the files to a application, so I can use this app on any matchine without having worry about file structure

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

any help is welcome

balam's icon

any one ?

teqy's icon

i do not have max on this machine to try your patch ,

but i create a message box like this:

(open D:/soundfolder/test.wav) and connect it to (sfplay~ 2)

note the '/' slash

make sure your .wav or .aiff is working in a media player,

then go back to max and use (open) to select it, then use (1) to play it. it should play with the dsp on, create an (ezdac~) so you can see your audio is on,

also create a couple of (meter~) and attach them to the output of (sfplay~ 2)

they should flash with a working audio file.

if all this fails. does a (cycle~ 1000) connected to a (meter~) work?

teqy's icon

also if your using sfrecord to record these files you're trying to play, sfrecord can be a bit buggy. try a wav or aiff from an export of your sequencer that you know plays o.k.

tell us how y get on.
peace

balam's icon

thank You teqy
using the open ../music/aif-files/filename.aiff

does not work

using the message open and select a file ,
does work

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

basically I woudl like to add the .aif files to my stand alone and be part of it so no need o of file selection

dafnanaphtali's icon

You'll probably need to make use of the "conformpath" object to get this working right. That'll probably do the trick.

balam's icon
Max Patch
Copy patch and select New From Clipboard in Max.

thank you guys
still not able to open files from standalone
get error on maxwindow no file open

Chris Muir's icon

I think that you're better off opening with a full path to the file, and not relying on any search paths.

You can get the path of your standalone and construct relative paths from there.