Csound Csound-dev Csound-tekno Search About

[Csnd] Selective Pitch Bending

Date2009-02-12 00:53
FromDaniel Riera
Subject[Csnd] Selective Pitch Bending
I was wondering if any of you had heard of a solution for selectively pitch bending notes generated by midi, such as to emulate a pedal steel guitar for instance?

Thanks,

-Daniel


Date2009-02-12 08:30
FromOeyvind Brandtsegg
Subject[Csnd] Re: Selective Pitch Bending
You can do it in several ways. Just some ideas:

If you set up a midi handling instrument, this instrument handles all
midi input and initiates events for audio generating instruments you
want to play via midi. Then you can have specific control over
fractional instr numbers for your events, and use this information to
enable or disable pitch bending inside the audio generator instrument.
Using a midi handling instrument like this is not straightforward, as
there is a lot of event handling stuff to take care of (like negative
p3 and so on), and Csound normally takes care of this for you. I do
not have a template for this, sorry.

Another and maybe simpler way is to play the same instrument on
several different midi channels.
Then use
ichn midichn
to check what midi channel initiated the instrument, then enable or
disable pitch bend based on this information.
Depending on your midi keyboard setup, this might be impractical. For
me it is very convenient as I use a Marimba Lumina controller, and
this allows sending on a separate midi channel per mallet. Very handy
sometimes...

Or, maybe check for the highest note played in this instrument, and
apply pitch bend only to that note ?
Maybe the way to start is figuring out how you want to control it,
e.g. in what way you want to tell Csound which notes should bend and
which should not.

best,
Oeyvind




2009/2/12 Daniel Riera :
> I was wondering if any of you had heard of a solution for selectively pitch
> bending notes generated by midi, such as to emulate a pedal steel guitar for
> instance?
>
> Thanks,
>
> -Daniel
>
>

Date2009-02-14 11:31
FromChuckk Hubbard
Subject[Csnd] Re: Re: Selective Pitch Bending
My first idea is what Oeyvind suggested with using separate channels.
With most software that's about the only option.

One other idea with something like Csound might be to use some other
CC's to control various pitches.  Pitch bend is usually 14-bit, if I'm
not mistaken, so you could conceivably send messages to control 5
different simultaneous notes with 10 cc's.  It would probably require
some way to differentiate between lines, like Csound's decimal
instrument numbers, or something.  I only suggest this in case the
instrument or program sending the notes is restricted to standard
MIDI.

-Chuckk

On Thu, Feb 12, 2009 at 10:30 AM, Oeyvind Brandtsegg  wrote:
> You can do it in several ways. Just some ideas:
>
> If you set up a midi handling instrument, this instrument handles all
> midi input and initiates events for audio generating instruments you
> want to play via midi. Then you can have specific control over
> fractional instr numbers for your events, and use this information to
> enable or disable pitch bending inside the audio generator instrument.
> Using a midi handling instrument like this is not straightforward, as
> there is a lot of event handling stuff to take care of (like negative
> p3 and so on), and Csound normally takes care of this for you. I do
> not have a template for this, sorry.
>
> Another and maybe simpler way is to play the same instrument on
> several different midi channels.
> Then use
> ichn midichn
> to check what midi channel initiated the instrument, then enable or
> disable pitch bend based on this information.
> Depending on your midi keyboard setup, this might be impractical. For
> me it is very convenient as I use a Marimba Lumina controller, and
> this allows sending on a separate midi channel per mallet. Very handy
> sometimes...
>
> Or, maybe check for the highest note played in this instrument, and
> apply pitch bend only to that note ?
> Maybe the way to start is figuring out how you want to control it,
> e.g. in what way you want to tell Csound which notes should bend and
> which should not.
>
> best,
> Oeyvind
>
>
>
>
> 2009/2/12 Daniel Riera :
>> I was wondering if any of you had heard of a solution for selectively pitch
>> bending notes generated by midi, such as to emulate a pedal steel guitar for
>> instance?
>>
>> Thanks,
>>
>> -Daniel
>>
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 
http://www.badmuthahubbard.com

Date2009-02-15 18:47
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: Re: Selective Pitch Bending
Yes, indeed, using separate CCs would be a way to do it.
But I'm sure that 7 bit resolution is fine enough for pitch bend,
except for very specific microtonal settings.
It would however be a good idea to lowpass filter the CC signal, to
avoid abrupt changes.

best
Oeyvind

2009/2/14 Chuckk Hubbard :
> My first idea is what Oeyvind suggested with using separate channels.
> With most software that's about the only option.
>
> One other idea with something like Csound might be to use some other
> CC's to control various pitches.  Pitch bend is usually 14-bit, if I'm
> not mistaken, so you could conceivably send messages to control 5
> different simultaneous notes with 10 cc's.  It would probably require
> some way to differentiate between lines, like Csound's decimal
> instrument numbers, or something.  I only suggest this in case the
> instrument or program sending the notes is restricted to standard
> MIDI.
>
> -Chuckk
>
> On Thu, Feb 12, 2009 at 10:30 AM, Oeyvind Brandtsegg  wrote:
>> You can do it in several ways. Just some ideas:
>>
>> If you set up a midi handling instrument, this instrument handles all
>> midi input and initiates events for audio generating instruments you
>> want to play via midi. Then you can have specific control over
>> fractional instr numbers for your events, and use this information to
>> enable or disable pitch bending inside the audio generator instrument.
>> Using a midi handling instrument like this is not straightforward, as
>> there is a lot of event handling stuff to take care of (like negative
>> p3 and so on), and Csound normally takes care of this for you. I do
>> not have a template for this, sorry.
>>
>> Another and maybe simpler way is to play the same instrument on
>> several different midi channels.
>> Then use
>> ichn midichn
>> to check what midi channel initiated the instrument, then enable or
>> disable pitch bend based on this information.
>> Depending on your midi keyboard setup, this might be impractical. For
>> me it is very convenient as I use a Marimba Lumina controller, and
>> this allows sending on a separate midi channel per mallet. Very handy
>> sometimes...
>>
>> Or, maybe check for the highest note played in this instrument, and
>> apply pitch bend only to that note ?
>> Maybe the way to start is figuring out how you want to control it,
>> e.g. in what way you want to tell Csound which notes should bend and
>> which should not.
>>
>> best,
>> Oeyvind
>>
>>
>>
>>
>> 2009/2/12 Daniel Riera :
>>> I was wondering if any of you had heard of a solution for selectively pitch
>>> bending notes generated by midi, such as to emulate a pedal steel guitar for
>>> instance?
>>>
>>> Thanks,
>>>
>>> -Daniel
>>>
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
>
> --
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>