Csound Csound-dev Csound-tekno Search About

exploding chords/glissando

Date2017-03-21 20:43
FromRichard
Subjectexploding chords/glissando
I would like to create 'exploding chords'. For example, when playing an 
'Am', all 3 notes start at the 'c', then one note slides down to 'a', 
another note slides up to 'e'. What is the best opcode I can use for 
this sliding from one note to another?

Richard

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-21 20:50
FromSteven Yi
SubjectRe: exploding chords/glissando
I use glissandi quite a bit.  I suppose how you go about it will
affect your p-field signature for your instrument, but I've been
tending to use expseg lately to move from one pitch to another.  So
something like:

ipch = cps2pch(8.00, 12)
ipch2 = cps2pch(8.03, 12)

kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)

asig = vco2(0.5, kpch)
asig = moogladder(asig, 2000, 0.1)
asig *= expon(1.0, p3, 0.0001)

outc(asig, asig)

might work.

Alternately, you could use tied notes and work with the port opcode to
glide over time.


On Tue, Mar 21, 2017 at 4:43 PM, Richard  wrote:
> I would like to create 'exploding chords'. For example, when playing an
> 'Am', all 3 notes start at the 'c', then one note slides down to 'a',
> another note slides up to 'e'. What is the best opcode I can use for this
> sliding from one note to another?
>
> Richard
>
> 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-21 21:05
FromRichard
SubjectRe: exploding chords/glissando
Thanks Steven, that's a good starting point. In my case it must also be 
playable from a midi keyboard.

Richard


On 21/03/17 21:50, Steven Yi wrote:
> I use glissandi quite a bit.  I suppose how you go about it will
> affect your p-field signature for your instrument, but I've been
> tending to use expseg lately to move from one pitch to another.  So
> something like:
>
> ipch = cps2pch(8.00, 12)
> ipch2 = cps2pch(8.03, 12)
>
> kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)
>
> asig = vco2(0.5, kpch)
> asig = moogladder(asig, 2000, 0.1)
> asig *= expon(1.0, p3, 0.0001)
>
> outc(asig, asig)
>
> might work.
>
> Alternately, you could use tied notes and work with the port opcode to
> glide over time.
>
>
> On Tue, Mar 21, 2017 at 4:43 PM, Richard  wrote:
>> I would like to create 'exploding chords'. For example, when playing an
>> 'Am', all 3 notes start at the 'c', then one note slides down to 'a',
>> another note slides up to 'e'. What is the best opcode I can use for this
>> sliding from one note to another?
>>
>> Richard
>>
>> 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

Date2017-03-21 21:57
FromRichard
SubjectRe: exploding chords/glissando
Related to this: how can determine what instruments instance i'm in? The 
code might need to do something else depending on what instance is 
running...

Richard


On 21/03/17 21:50, Steven Yi wrote:
> I use glissandi quite a bit.  I suppose how you go about it will
> affect your p-field signature for your instrument, but I've been
> tending to use expseg lately to move from one pitch to another.  So
> something like:
>
> ipch = cps2pch(8.00, 12)
> ipch2 = cps2pch(8.03, 12)
>
> kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)
>
> asig = vco2(0.5, kpch)
> asig = moogladder(asig, 2000, 0.1)
> asig *= expon(1.0, p3, 0.0001)
>
> outc(asig, asig)
>
> might work.
>
> Alternately, you could use tied notes and work with the port opcode to
> glide over time.
>
>
> On Tue, Mar 21, 2017 at 4:43 PM, Richard  wrote:
>> I would like to create 'exploding chords'. For example, when playing an
>> 'Am', all 3 notes start at the 'c', then one note slides down to 'a',
>> another note slides up to 'e'. What is the best opcode I can use for this
>> sliding from one note to another?
>>
>> Richard
>>
>> 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

Date2017-03-21 21:59
FromDave Seidel
SubjectRe: exploding chords/glissando
When I have multiple instances of an instrument, I generally use fractional instr numbers. Then, within the instrument, you just need to look at p1. 

On Tue, Mar 21, 2017 at 5:57 PM, Richard <zappfinger@gmail.com> wrote:
Related to this: how can determine what instruments instance i'm in? The code might need to do something else depending on what instance is running...

Richard


On 21/03/17 21:50, Steven Yi wrote:
I use glissandi quite a bit.  I suppose how you go about it will
affect your p-field signature for your instrument, but I've been
tending to use expseg lately to move from one pitch to another.  So
something like:

ipch = cps2pch(8.00, 12)
ipch2 = cps2pch(8.03, 12)

kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)

asig = vco2(0.5, kpch)
asig = moogladder(asig, 2000, 0.1)
asig *= expon(1.0, p3, 0.0001)

outc(asig, asig)

might work.

Alternately, you could use tied notes and work with the port opcode to
glide over time.


On Tue, Mar 21, 2017 at 4:43 PM, Richard <zappfinger@gmail.com> wrote:
I would like to create 'exploding chords'. For example, when playing an
'Am', all 3 notes start at the 'c', then one note slides down to 'a',
another note slides up to 'e'. What is the best opcode I can use for this
sliding from one note to another?

Richard

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



--
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-21 22:09
FromRichard
SubjectRe: exploding chords/glissando

Ok, good one. But when playing from midi, how can I determine the instance?


On 21/03/17 22:59, Dave Seidel wrote:
When I have multiple instances of an instrument, I generally use fractional instr numbers. Then, within the instrument, you just need to look at p1. 

On Tue, Mar 21, 2017 at 5:57 PM, Richard <zappfinger@gmail.com> wrote:
Related to this: how can determine what instruments instance i'm in? The code might need to do something else depending on what instance is running...

Richard


On 21/03/17 21:50, Steven Yi wrote:
I use glissandi quite a bit.  I suppose how you go about it will
affect your p-field signature for your instrument, but I've been
tending to use expseg lately to move from one pitch to another.  So
something like:

ipch = cps2pch(8.00, 12)
ipch2 = cps2pch(8.03, 12)

kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)

asig = vco2(0.5, kpch)
asig = moogladder(asig, 2000, 0.1)
asig *= expon(1.0, p3, 0.0001)

outc(asig, asig)

might work.

Alternately, you could use tied notes and work with the port opcode to
glide over time.


On Tue, Mar 21, 2017 at 4:43 PM, Richard <zappfinger@gmail.com> wrote:
I would like to create 'exploding chords'. For example, when playing an
'Am', all 3 notes start at the 'c', then one note slides down to 'a',
another note slides up to 'e'. What is the best opcode I can use for this
sliding from one note to another?

Richard

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



--
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-21 23:55
FromRichard
SubjectRe: exploding chords/glissando
Attachmentsexplode.mp3  

This is starting to work. Here is an example. I will turn this into a Cabbage instrument, allowing all sorts of variables to be tuned...

Richard


On 21/03/17 22:59, Dave Seidel wrote:
When I have multiple instances of an instrument, I generally use fractional instr numbers. Then, within the instrument, you just need to look at p1. 

On Tue, Mar 21, 2017 at 5:57 PM, Richard <zappfinger@gmail.com> wrote:
Related to this: how can determine what instruments instance i'm in? The code might need to do something else depending on what instance is running...

Richard


On 21/03/17 21:50, Steven Yi wrote:
I use glissandi quite a bit.  I suppose how you go about it will
affect your p-field signature for your instrument, but I've been
tending to use expseg lately to move from one pitch to another.  So
something like:

ipch = cps2pch(8.00, 12)
ipch2 = cps2pch(8.03, 12)

kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)

asig = vco2(0.5, kpch)
asig = moogladder(asig, 2000, 0.1)
asig *= expon(1.0, p3, 0.0001)

outc(asig, asig)

might work.

Alternately, you could use tied notes and work with the port opcode to
glide over time.


On Tue, Mar 21, 2017 at 4:43 PM, Richard <zappfinger@gmail.com> wrote:
I would like to create 'exploding chords'. For example, when playing an
'Am', all 3 notes start at the 'c', then one note slides down to 'a',
another note slides up to 'e'. What is the best opcode I can use for this
sliding from one note to another?

Richard

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



--
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-26 15:02
FromAndrea Strappa
SubjectRe: exploding chords/glissando
AttachmentsMidiPolyMultiTrigg_04.csd  

Hi Richard, today I made same test with Steven code about glissando (attached).

Perhaps it can be useful to you.

All the best

A.S.


Il 22/03/2017 00:55, Richard ha scritto:

This is starting to work. Here is an example. I will turn this into a Cabbage instrument, allowing all sorts of variables to be tuned...

Richard


On 21/03/17 22:59, Dave Seidel wrote:
When I have multiple instances of an instrument, I generally use fractional instr numbers. Then, within the instrument, you just need to look at p1. 

On Tue, Mar 21, 2017 at 5:57 PM, Richard <zappfinger@gmail.com> wrote:
Related to this: how can determine what instruments instance i'm in? The code might need to do something else depending on what instance is running...

Richard


On 21/03/17 21:50, Steven Yi wrote:
I use glissandi quite a bit.  I suppose how you go about it will
affect your p-field signature for your instrument, but I've been
tending to use expseg lately to move from one pitch to another.  So
something like:

ipch = cps2pch(8.00, 12)
ipch2 = cps2pch(8.03, 12)

kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)

asig = vco2(0.5, kpch)
asig = moogladder(asig, 2000, 0.1)
asig *= expon(1.0, p3, 0.0001)

outc(asig, asig)

might work.

Alternately, you could use tied notes and work with the port opcode to
glide over time.


On Tue, Mar 21, 2017 at 4:43 PM, Richard <zappfinger@gmail.com> wrote:
I would like to create 'exploding chords'. For example, when playing an
'Am', all 3 notes start at the 'c', then one note slides down to 'a',
another note slides up to 'e'. What is the best opcode I can use for this
sliding from one note to another?

Richard

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



--
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-26 20:33
FromRichard
SubjectRe: exploding chords/glissando

Thank Andrea. I will have a look.

Richard


On 26/03/17 16:02, Andrea Strappa wrote:

Hi Richard, today I made same test with Steven code about glissando (attached).

Perhaps it can be useful to you.

All the best

A.S.


Il 22/03/2017 00:55, Richard ha scritto:

This is starting to work. Here is an example. I will turn this into a Cabbage instrument, allowing all sorts of variables to be tuned...

Richard


On 21/03/17 22:59, Dave Seidel wrote:
When I have multiple instances of an instrument, I generally use fractional instr numbers. Then, within the instrument, you just need to look at p1. 

On Tue, Mar 21, 2017 at 5:57 PM, Richard <zappfinger@gmail.com> wrote:
Related to this: how can determine what instruments instance i'm in? The code might need to do something else depending on what instance is running...

Richard


On 21/03/17 21:50, Steven Yi wrote:
I use glissandi quite a bit.  I suppose how you go about it will
affect your p-field signature for your instrument, but I've been
tending to use expseg lately to move from one pitch to another.  So
something like:

ipch = cps2pch(8.00, 12)
ipch2 = cps2pch(8.03, 12)

kpch = expseg(ipch, p3 * .5, ipch2, p3 * .5, ipch2)

asig = vco2(0.5, kpch)
asig = moogladder(asig, 2000, 0.1)
asig *= expon(1.0, p3, 0.0001)

outc(asig, asig)

might work.

Alternately, you could use tied notes and work with the port opcode to
glide over time.


On Tue, Mar 21, 2017 at 4:43 PM, Richard <zappfinger@gmail.com> wrote:
I would like to create 'exploding chords'. For example, when playing an
'Am', all 3 notes start at the 'c', then one note slides down to 'a',
another note slides up to 'e'. What is the best opcode I can use for this
sliding from one note to another?

Richard

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



--
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