[Csnd] Panning
Date | 2009-12-01 12:12 |
From | Carl |
Subject | [Csnd] Panning |
Hi Guys, If I want an instrument panned either right or left, how do I go about it? Thanks, Carl |
Date | 2009-12-01 12:25 |
From | Victor Lazzarini |
Subject | [Csnd] Re: Panning |
you can use the pan2 opcode: pan2 — Distribute an audio signal across two channels. Victor On 1 Dec 2009, at 12:12, Carl wrote: Hi Guys, |
Date | 2009-12-01 14:07 |
From | Adam Puckett |
Subject | [Csnd] Re: Panning |
Hi Carl, I think (and I may be wrong) that all you have to do for a simple pan is to multiply a signal by a number (1 for left, 0 for right). I'll check the manual and the tutorials on this subject. (You can find the tutorials at: http://csounds.com/tutorials/ Hope this helps. Adam --- On Tue, 12/1/09, Carl |
Date | 2009-12-01 14:11 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Panning |
Make sure nchnls = 2 and then something as simple as Adam mentioned above will do, i.e., nchnls = 2 instr 1 a1 oscil 10000, 440, 1 outs a1*0, a1 endin Rory. 2009/12/1 Adam Puckett |
Date | 2009-12-01 15:02 |
From | "Joe O'Farrell" |
Subject | [Csnd] Re: Re: Panning |
If you want the sound to move, you can modify Rory's instrument to include something like: instr 1 kpan line 0, p3, 1 a1 oscil 10000, 440, 1 outs a1*kpan, a1*(1-kpan) endin Can get nice effects if you use an LFO for kpan, incidentally… Joe On 1 Dec 2009, at 14:11, Rory Walsh wrote: > Make sure nchnls = 2 and then something as simple as Adam mentioned > above will do, i.e., > > nchnls = 2 > > instr 1 > a1 oscil 10000, 440, 1 > outs a1*0, a1 > endin > > Rory. > > > 2009/12/1 Adam Puckett |
Date | 2009-12-01 16:00 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: Panning |
I usually pan with the jspline opcode. Just replace Joe's kpan line with something like: kpan jspline 1, 1, 3 and then make sure you use "abs" as jspline will output from -1 to +1 so the out line would look like this: outs a1*abs(kpan), a1*1-abs(kpan) Rory. 2009/12/1 Joe O'Farrell |
Date | 2009-12-01 16:11 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Panning |
may I place a pleas for equal power panning? A linear pan does not give that; that is why I wrote pan2 as I could never remember which algorithm to use. ==John > I usually pan with the jspline opcode. Just replace Joe's kpan line > with something like: > kpan jspline 1, 1, 3 > and then make sure you use "abs" as jspline will output from -1 to +1 > so the out line would look like this: > outs a1*abs(kpan), a1*1-abs(kpan) > Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-12-01 16:47 |
From | Steven Yi |
Subject | [Csnd] Re: Re: Panning |
I still like using pan_gm2 (http://www.csounds.com/udo/displayOpcode.php?opcode_id=79) which was the recommended pan scheme by the MIDI association. Sounds good to me! :) On Tue, Dec 1, 2009 at 11:11 AM, |
Date | 2009-12-01 17:06 |
From | Richard Dobson |
Subject | [Csnd] Re: Re: Re: Panning |
Steven Yi wrote: > I still like using pan_gm2 > (http://www.csounds.com/udo/displayOpcode.php?opcode_id=79) which was > the recommended pan scheme by the MIDI association. Sounds good to > me! :) > = Standard sin/cos law c/p pan. But perhaps better without the unnecessary conversion to dB and back again! Richard Dobson Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-12-01 17:21 |
From | "Joe O'Farrell" |
Subject | [Csnd] Re: Re: Panning |
John is absolutely right, of course, and I wholeheartedly endorse the use of pan2 I did not mean to imply that the linear example was ideal - it just makes it easy to see the relationship between L/R values and position in the stereo field (at least it does to me, though that might be something to do with my age… when I started with Csound it came on a floppy!) Joe On 1 Dec 2009, at 16:11, jpff@cs.bath.ac.uk wrote: > may I place a pleas for equal power panning? A linear pan does not > give > that; that is why I wrote pan2 as I could never remember which > algorithm > to use. > ==John > >> I usually pan with the jspline opcode. Just replace Joe's kpan line >> with something like: >> kpan jspline 1, 1, 3 >> and then make sure you use "abs" as jspline will output from -1 to +1 >> so the out line would look like this: >> outs a1*abs(kpan), a1*1-abs(kpan) >> > > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body > "unsubscribe csound" > Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-12-01 17:46 |
From | Steven Yi |
Subject | [Csnd] Re: Re: Re: Re: Panning |
Oh... hahahha! I did that code quickly a long while back and didn't even register it was doing that extra conversion. Should just use pan2 then. :) On Tue, Dec 1, 2009 at 12:06 PM, Richard Dobson |
Date | 2009-12-01 18:18 |
From | Carl |
Subject | [Csnd] Re: Re: Re: Re: Re: Panning |
Ah, beautiful panning on my laptop - thanks! On Tue, Dec 1, 2009 at 5:46 PM, Steven Yi <stevenyi@gmail.com> wrote: Oh... hahahha! I did that code quickly a long while back and didn't -- "Call me what you like....but don't call me in the morning."http://www.myspace.com/bluefevermusic |
Date | 2009-12-01 21:34 |
From | victor |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Panning |
I like the way a question gets lots of answers in
this list. Good community spirit, huh?
|
Date | 2009-12-02 13:05 |
From | J |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Panning |
Yes, I agree, I am always pleasantly surprised at how consistently helpful and engaging this list is! On Tue, Dec 1, 2009 at 9:34 PM, victor <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2009-12-02 14:44 |
From | moko@city-net.com |
Subject | [Csnd] Re: Re: Panning |
Another way to avoid linear panning is to use sqrt: kpan line 0,p3,1 kleft = sqrt(1-kpan) kright = sqrt(kpan) outs asig*kleft,asig*kright A floppy!! Nobody's THAT old! --David > John is absolutely right, of course, and I wholeheartedly endorse the > use of pan2 > > I did not mean to imply that the linear example was ideal - it just > makes it easy to see the relationship between L/R values and position > in the stereo field > > (at least it does to me, though that might be something to do with my > age when I started with Csound it came on a floppy!) > > > Joe > > > On 1 Dec 2009, at 16:11, jpff@cs.bath.ac.uk wrote: > >> may I place a pleas for equal power panning? A linear pan does not >> give >> that; that is why I wrote pan2 as I could never remember which >> algorithm >> to use. >> ==John >> >>> I usually pan with the jspline opcode. Just replace Joe's kpan line >>> with something like: >>> kpan jspline 1, 1, 3 >>> and then make sure you use "abs" as jspline will output from -1 to +1 >>> so the out line would look like this: >>> outs a1*abs(kpan), a1*1-abs(kpan) >>> >> >> >> >> >> Send bugs reports to this list. >> To unsubscribe, send email sympa@lists.bath.ac.uk with body >> "unsubscribe csound" >> > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > |
Date | 2009-12-02 14:56 |
From | moko@city-net.com |
Subject | [Csnd] Transeg error message |
When omitting an itype argument from transeg, I've noticed there isn't a syntax error message like that which usually appears with this type of mistake. Everything compiles with "0 errors" but also with 0 amplitude output. So, is this an error with the error message? I'm using ver. 5.08. Thanks-- --David |
Date | 2009-12-02 20:28 |
From | "Joe O'Farrell" |
Subject | [Csnd] Re: Re: Panning |
On 2 Dec 2009, at 14:44, moko@city-net.com wrote: > A floppy!! Nobody's THAT old! Would that that were true… ;-) For the record, first encounter with Csound was in 1997 - or the year 10 BK (Before kpan2) Could have been worse - at least it was a 3.5" floppy! Joe Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-12-02 20:59 |
From | Richard Dobson |
Subject | [Csnd] Re: Re: Re: Panning |
Joe O'Farrell wrote: > > On 2 Dec 2009, at 14:44, moko@city-net.com wrote: > >> A floppy!! Nobody's THAT old! > > Would that that were true… ;-) > > For the record, first encounter with Csound was in 1997 - or the year 10 > BK (Before kpan2) > > Could have been worse - at least it was a 3.5" floppy! > I can put just a few years on that - got the CDP system (Atari ST, plus 80MB SCSI hard disk costing £900, and a floppy drive) in 1987, and Csound was already included. Among the ancillary delights just a little later on was a really very good GUI application by Richard Orton for creating hetro files for adsyn by drawing each partial graphically as breakpoint data. And at that time I had never heard of an "equal-power pan", nor knew why I would want one. Richard Dobson Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2009-12-02 21:40 |
From | matt ingalls |
Subject | [Csnd] Re: Re: Re: Re: Panning |
just to be thorough on the subject of panning, there's a "rotate" UDO i made here: http://www.csounds.com/udo/displayOpcode.php?opcode_id=45 this is a good way for panning recorded stereo files -- you can almost think of it as "microphone rotation" matt ingalls matt@sonomatics.com Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |