Panning Automation in Max/MSP
Hi, I'm trying to create a subpatcher which will pan my signal from hard left to hard right over 2.5 seconds, then back to hard left over another 2.5 seconds (smoothly), whilst keeping a constant sound power. Apologies if this is a simple operation/question, I haven't been using Max for long and couldn't find anything which made this process obvious in the help files or example patches. I have attempted to use a function/line combination to send values to the pan2 and pan2S objects, as well as creating my own subpatcher manually (below), which I'm fairly sure I've made a mistake regarding maths or coding in. Again, apologies if this is something which is extremely basic. Any ideas?
Thanks.
Also, the cycle~ 440 object is just there for testing purposes; I am using sfplay~ objects in my patch, if that makes any difference.
Well, what's wrong with pan2? It does the trick more or less by the book, using cycle~, which is very efficient.
first of all, you must use floating point:
[/ 100.], [sqrt 0.]
Sorry, I'm not sure how to quote on this forum. Wetterberg, the object just didn't appear to be achieving any panning effect, so I assume I was using it wrong, but I was under the impression that the object asks for a signal in the left inlet, panning values in the right inlet and right and left channel audio out of the respective outlets? Or have I interpreted the comments in that subpatcher incorrectly?
Thanks for the floating point tip Roman.
you did get it wrong, I think - input1: signal. input2: pan value, from -1. to +1. input3 panning 0-127, input4: slide time.
It'll tell you this if you hover over the inlets, too.
Yeah, I tried panning from -1 to +1 and through midi, and both resulted in a hard left pan at the lowest value and a hard right pan at the highest value, with nothing in between.
Some things that might be of some help:MSP Tutorial 22: MIDI PanningExample 12: Linear amplitude panningExample 13: Constant power panning using square root of intensityExample 14: Constant power panning using table lookupExample 24: Abstraction for constant-intensity stereo panningExample 50: Rhythmic automated panning
And when you need to convert one range of numbers, scale or scale~ are very helpful.
Thanks for the help everyone, sorry to ask elementary questions. Should be able to work this out from your advice and Christopher's links. Very pleased!