stereo pan /panning stereo input

    Nov 16 2005 | 6:35 pm
    Hi everyone,
    I'm trying to figure out how to pan a stereo signal.
    Most of the examples in the manual/tutorials, included examples and
    3rd party objects
    take a mono signal, then create a virtual stereo image and pan.
    what i'm trying to do is take a stereo input and pan the stereo signal.
    i know i need to use two separate constant power pans (one for each
    signal...i'm thinking of using nathan wolek's cppan~) so that at the
    center position, L would be 0 and R would be 1; at hard right, L
    would be 1 and R would be 1 and at hard left, L would be 0 and R
    would be 0. I want to use a master slider to control the values of
    both cppan~ objects. What I'm having problems figuring out is, as
    you pan from hard right to hard left, the L value would decrease 0 to
    1 and the R value would stay at 1, as the master slider reaches
    center position. As the master slider passes from center in the the
    left side, however, the R value would move from 1 to 0 while the L
    would stay at 0. I guess what I can't figure out is how to use a
    master slider to control both values, but scaled in such a way as I
    described. (The biggest problem I'm having is how to have the L
    value be at 0 and the R value at 1 when the main slider is at center
    position.) Can anyone help me figure this out?
    Thanks for your help!
    P.S. I am aware of the discussion below, but can't figure out how to
    implement what lawrence describes, using the split object.
    Re: [max-msp] stereo pan knob
    This message: [ Message body ] [ More options ]
    Related messages: [ Next message ] [ Previous message ] [ In reply
    to ] [ Next in thread ] [ Replies ]
    From: lawrence casserley
    Date: 04/23/04
    this sounds to me like twoconstant power pans, one for each signal. For
    the first half of the pan you are panning the right input from left to
    right outlut; for the second half you are panning the left input from
    left to right output. Use the 'split' object to divide your control
    into two halves.
    On 22 Apr, 2004, at 21:33, C Paul Johnson wrote:
    > What I was
    > trying to get at is this: I have a stereo signal... When it's panned
    > all the
    > way to the left, I want to have both signals panned all the way left.
    > So
    > that means that they have to add together. Vice versa for the right
    > side.
    > When it's panned center I want left on the left and right on the
    Lawrence Casserley -
    Lawrence Electronic Operations -
    Colourscape Music Festivals -
    Received on Fri Apr 23 10:16:40 2004

    • Nov 16 2005 | 10:46 pm
      There you go.
      max v2;
    • Nov 16 2005 | 11:14 pm
      Thanks so much!
      I understand now.
      I always forget about the power of those pesky trigger objects.
      Thanks again!
      Corey Fuller
      on: sound + video inc.
    • Nov 17 2005 | 2:28 am
    • Nov 17 2005 | 2:42 am
      It's funny you mention this, because I just learned how to do this today in
      my max/msp class at school. To do it, just use this handy little patch I made.
      Just make a patcher or abstraction of this little patch. Then put the
      signal in one side, and a value between 0 and 1 in the other. 0 would be hard left
      and 1 hard right. Thats all there is to it!
      max v2;
    • Nov 17 2005 | 2:57 am
      Sorry about that, I actually messed that up. Patch cord in the wrong place.
      This one works though. I connected the patch cords wrong. The idea though
      is that a signal is between 0 and 1. when multiplied by zero, it is zero and
      by 1 is 1. If at the same time though for the other channel you are doing the
      opposite when one it at 1, the other is at zero and vice verca and anywhere in
      between. Just copy this one into a patcher and look inside. It's not to
      hard to figure out whats goin on. Hope this helped.
      max v2;
    • Nov 17 2005 | 8:35 am
      I don't think this is what you are looking for but I seldom post so I
      thought it was time -- here is another patch for panning a mono signal
      to stereo. With a few mods it could control the pan of a stereo signal,
      and if you feel really lazy you can use it to control the amplitudes of
      the left and right channels of a stereo signal (not really panning if it
      is already a stereo signal).
      This one works with a little help from grade ten math (trig).
      hope it helps,
      max v2;
    • Nov 17 2005 | 11:50 am
      On 17 nov. 05, at 03:57, wrote:
      > It's funny you mention this, because I just learned how to do this
      > today in my max/msp class at school.
      maybe you haven't pay enough attention to you course :-) With your
      solution, you'll multiply by a negative number, then you'll have an
      oposite phase. Using [!- 1.] instead of [- 1.] will solve the
      problem. Don't forget you'll have clicks because you're changing the
      multiplying factor by "big" steps. You'll need a [line~] object, for
      example, to avoid this.
    • Nov 17 2005 | 4:39 pm
      There are two problems with your solution: The first, it would inverse
      the phase of the right channel, solution: use [!- 1] instead of [- 1].
      The other, you get a drop of 6 dB at the center. Solution: look at the
      examples... ;-)
      [][] [][][] [][] [][][] [][] [][][] [][] [][][]
      Stefan Tiedje
      Electronic Composition
      \ /|() ()|
      ))))) )| | |( \
      /// _/)/ )))))
      ___/ ///
      --(_|_ ----|-----|-----()---
      -- _|_)----|-----()----------
      14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France
      Phone at CCMIX +33-1-49 77 51 72
    • Nov 18 2005 | 7:54 am
      Thank you everyone for your help and insight.
      Along with the example sent in my mzed, below is what I was trying to
      Thanks Lawrence and to everyone else who contributed ideas.
      Corey Fuller
      on: sound + video inc.
    • Mar 13 2006 | 9:27 pm
      i'm looking for a way to do the opposite (well kind off). making a
      quadrapfonic signal mono. so i can switch between them with a slider.
      what would be a way to do this? everything needs to be equalpower so you
      won't notice a gap or sudden amplification in the sound that is produced.
      poul holleman
      student composition & musictechnology
      HKU, netherlands
    • Mar 13 2006 | 10:08 pm
      Here a simple solution with 3 tap.crossfade~ (TapTools required) to mix 4
      sources to 1 output.
      Is it what you're looking for?
      Mathieu Chamagne
      max v2;
    • Mar 14 2006 | 1:24 am
      or with the standard matrix~ object:
    • Mar 14 2006 | 8:04 am
      ...not to forget luigi castellis quadxfade~ external.
      hans w. koch
      im krahnenhof 11
      d-50668 koeln
    • Mar 15 2006 | 10:14 am
      thanks for replying but both are not what i ment.
      what i'm trying to make is an effect that kan switch a quadrasignal, so four
      independant signals, to a mono signal, four equal signals in this case, and
      back again. i want to control this with a slider so you can slightly turn it
      to mono.
      so i need a patch kinda like this:
      4 signal inputs
      | | | |
      0 = mono
      64 = somewhere between full quadro and mono
      127 = full quadro
      4 signal outputs
      | | | |
      it's like turning the two panknobs on a mixer of a stereosignal from the
      middle to the left at one channel and from the middle to the right at the
      other at the same time. (switching between mono and stereo)
      grt / poul
      poul holleman
      student composition & musictechnology
      HKU, netherlands
    • Mar 15 2006 | 12:19 pm
      If you can imagine how to do what you want to do with a mixer, then you
      can often do it the same way in Max. Similar logic is involved.
      If you want four independent channels to be capable of fading into four
      identical channels (all channels mixed to all outputs), then create your
      four inputs. Two signal paths come from each. The first to a [*~] and
      then to the corresponding output. The second to a [*~] which is shared
      between all four inputs, the output of which goes to all four outputs.
      Your fader will control whatever pan law you decide to implement between
      the four-vs-one [*~] serving as amplitude controls; fade one way favors
      the four and fade the other favors the one.
      ...I think. It's really late.
    • Mar 15 2006 | 2:51 pm
      yes indeed, i'm aware of that. but how to get it all equal power?
      poul holleman
      student composition & musictechnology
      HKU, netherlands
    • Mar 16 2006 | 6:50 pm
      like this ?
    • Mar 16 2006 | 6:58 pm
      sorry ... like this :9
    • Mar 17 2006 | 1:20 pm
      yes, this could be it. thanks!
      i dont have a quadraphonic setup at home but i quess im able to test it next
      there is a dc offset at signal 2 and 3 though..
      but its a nice trick with the cycle~ object. does this work about the same
      as using sqrt for creating equal power?
      poul holleman
      student composition & musictechnology
      HKU, netherlands