Hi all
I'm quite new to Pd and this forum.
Does anyone have any idea how to pan a sound file played from an array? I am hoping to pan just before the dac~. Would it be different for a mono and stereo?
Thansk in advance.
String
Panning and Stereo Sound Manipulation
Hi all
I'm quite new to Pd and this forum.
Does anyone have any idea how to pan a sound file played from an array? I am hoping to pan just before the dac~. Would it be different for a mono and stereo?
Thansk in advance.
String
sorry i forgot to add my question about stereo. I currently have a mono file player patch which loads a sample into an array and uses the phasor~ object to playback through the array (allows me to easily loop!). However how can i convert this whole patch to stereo. in particular the playback using phasor?
Many thanks
Hello BB, welcome.
To pan a mono signal first split it into two. For very simple panning one side is multiplied by x and the other side is multiplied by 1-x. The value x can be a float
message or audio signal in the range 0-1
signal
|
/ \
/ x \ 1-x
/ | \ |
[*~] [*~]
| |
[dac~ ]
Better panning is possible if you make the control values sqrt(x) and 1-sqrt(x)
If your file is stereo and you want both channels you need 2 arrays, one for left side and one for the right side. Check out the help file on [soundfiler] to see how to get both channels. You will use the same [phasor~] to index both arrays.
Panning a stereo signal is more complex, but I think you can work it out once you have panned a mono signal.
Use the Source.
thanks obiwannabe!
I got the stereo working with two arrays yesterday, reading both from a phasor. Pretty damn simple really! I'm gonna try the panning.. hopefully it will work... will get back to you.
hello,
I was searching for panning help and found this, I know it is old (and simple!), but I was hoping someone could elaborate on the signal input area.
I have been playing around with a 2 channel output and would like to add a slider that pans left to right....
thanks,
db
Heres something that might help you.
I've also put notes in it to make it somewhat more understandable.
Someone else could probably write a cleaner, simpler version, but this one works for me.
This is just panning a mono file.
puredata punx http://www.cyberpunki.biz
Oops! Looks like something went wrong!