Csound Csound-dev Csound-tekno Search About

Key/Pitch Track formula for panning

Date2017-03-01 16:49
FromSam Smalley
SubjectKey/Pitch Track formula for panning
Hi Csounders,

I was wondering the best formula to create pitch-based panning modulation. Ideally I would like to have a formula that is focused on using cpspch as the number to cycle converter.

Right now, my formula looks like this:


icps = cpspch(p5)

...

outs aMix2 * (p5/8), aMix2 * (8/p5)


My goal in this case is two fold:

1. To have all numbers in p5 of the score section (controlling the pitch of all instruments) >8.00 panned R, and <8.00 panned L. However, this formula seems to pan the notes pretty far L. 

2. To simulate key tracking, as well as to give a 'natural' spread to this instrument, a 80's style string synth. 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-03-01 16:52
FromVictor Lazzarini
SubjectRe: Key/Pitch Track formula for panning
Why don’t you use pan2

http://www.csounds.com/manual/html/pan2.html

a1,a2  pan2 aMix2, 8/p5

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 1 Mar 2017, at 16:49, Sam Smalley  wrote:
> 
> Hi Csounders,
> 
> I was wondering the best formula to create pitch-based panning modulation. Ideally I would like to have a formula that is focused on using cpspch as the number to cycle converter.
> 
> Right now, my formula looks like this:
> 
> 
> icps = cpspch(p5)
> 
> ...
> 
> outs aMix2 * (p5/8), aMix2 * (8/p5)
> 
> 
> My goal in this case is two fold:
> 
> 1. To have all numbers in p5 of the score section (controlling the pitch of all instruments) >8.00 panned R, and <8.00 panned L. However, this formula seems to pan the notes pretty far L. 
> 
> 2. To simulate key tracking, as well as to give a 'natural' spread to this instrument, a 80's style string synth. 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-03-01 17:09
FromSamuel Smalley
SubjectRe: Key/Pitch Track formula for panning
That works great! 

Thanks,
Sam
On Wed, Mar 1, 2017 at 11:52 AM Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Why don’t you use pan2

http://www.csounds.com/manual/html/pan2.html

a1,a2  pan2 aMix2, 8/p5

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 1 Mar 2017, at 16:49, Sam Smalley <ssmalley@BERKLEE.EDU> wrote:
>
> Hi Csounders,
>
> I was wondering the best formula to create pitch-based panning modulation. Ideally I would like to have a formula that is focused on using cpspch as the number to cycle converter.
>
> Right now, my formula looks like this:
>
>
> icps = cpspch(p5)
>
> ...
>
> outs aMix2 * (p5/8), aMix2 * (8/p5)
>
>
> My goal in this case is two fold:
>
> 1. To have all numbers in p5 of the score section (controlling the pitch of all instruments) >8.00 panned R, and <8.00 panned L. However, this formula seems to pan the notes pretty far L.
>
> 2. To simulate key tracking, as well as to give a 'natural' spread to this instrument, a 80's style string synth.
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here