Hi, I'm sorry to intrude but I'm really finding it quite difficult to find the required amount of information to do this thing properly.
What I'm trying to do, is create a sfxplayer~.pd which plays out a stereo-sample. The stereo-sample (.wav) is defined inside pd by this:
This argument is then read by "something", and output into a messagebox that says
-read $1 channelL channelR
however, these channelL and channelR's are $0, i.e., specific to that instance of sfxplayer~ only.
I've tried to read tutorials, even a few books, and thought that renaming the array to $0-array1 would help, but no dice. So, since the sfxplayer~.pd consists of a "read <file.wav> <individualarray-Left> <individualarray-Right> and a tabplay~ <individualarray-Left> and another tabplay~ for <individualarray-Right>
I'm really starting to wonder what I'm supposed to name these things.
I tried passing a message (consisting of file.wav) to the read with it's $1, being replaced by the message sending a file.wav -- but to no avail.
If I create a $0-array1, it will say "0-array1 does not exist" or some such.
I'm so close, yet so far from being able to do this in a reasonable fashion. I thought having an inlet inside sfxplayer~ would allow me to patch the inlet's data (a message being banged from outside sfxplayer~) to the read arguments, but to no avail.
What am I doing wrong and why cannot I seem to comprehend how this is done?
Is it just a case of not knowing how to google for $0 $1 $2 pure data tutorials, or?
Edit: I now tried to put an inlet into the sfxplayer~.pd and connect that to the read -atom. When I banged the inlet, I got this:
$1: argument number out of range
usage: read [flags] filename tablename...