When i try to use an open object to play a sample, as soon as i click off the object it gets a strange turquoise circle and has no outlet so i can't connect to dac~
If i click help, it shows the following, but i've tried relative and absolute paths starting with Macintosh HD/User etc.
Problem using open object
@pure-data-troubles You will have more luck with [openpanel] for playing a sample.
You will need to connect it to [readsf~] which will do the actual playing.... of a wav file.
The essential bits, and the not so essential......
Below [openpanel] is a message box [open $1( and the name of the file you select will replace $1 so that the message sent to [readsf~ 2] (2 because stereo put 1 if mono) will be [open mytrack.wav(
Of course if you only have the one track to play you do not need [openpanel]
Just send the message [open C:/..../mytrack.wav( ..........or if it is in the same folder as your patch [open mytrack.wav( .........or if it is in a sub-folder [open subfoldername/mytrack.wav(
Then send a [1( or a [start( message to [readsf~] to start the playback.
Thanks for your reply, unfortunately any open command including your suggested "open $1" object still creates the strange object with no outlet. The object you can see here was created when i typed "open $1". It has no outlet although i can connect in to it.
So i cannot take the steps required to do either of your suggestions. At this point i think it's just a complete bug. I'm going to see if i can get a better version of PD extended
Ok now i'm trying the same thing with PD vanilla and getting similar but different problems. In Vanilla, open doesn't change to the weird object, but doesn't accept the command - see screenshot:
Purr data (PDL2rk) again gives me an object with no outlet
/Users/david211/Desktop/Screen Shot 2018-11-09 at 12.00.52.png
I think it must be to do with mac file system. Are any other mac users seeing the same thing?
@pure-data-troubles No need, it is not a bug........
You have your "open $1" message in an object.... when it should be in a message..
Try this...... cart.zip ....... ( sorry, there was a small error in the last one).
It will "loop" and play "again"....... and other stuff.
It also shows you the message you need to send to the [open $1( message......... in a message box below the "set" message.
((Note that [readsf~] is unusual in that it can deal with spaces in filenames...... generally for working with Pd it is best to avoid any spaces in patch names, directory names, etc.... etc.))
If you are just playing one file then you can do this...... you don't need the [open] object...... but as I said above the [open mytrack.wav( MUST BE IN A MESSAGE BOX.......
Ah. Thanks. It was just that. Works fine when i use a message box. Doh. And thanks for the patch!