Csound Csound-dev Csound-tekno Search About

[Csnd] Sending Pitch Bend Data From Csound

Date2012-05-18 15:51
FromWilliam Wignall
Subject[Csnd] Sending Pitch Bend Data From Csound
AttachmentsTrev's Pitch to MIDI Converter.csd  
Hello,

I'm working on a pitch to MIDI/amplitude to velocity tracker. I'd like to use the output 'koct' from the opcode 'pitch' to send MIDI pitch bend data out of csound. Since MIDI notes are fixed, bending and vibrato are impossible. On violin, this really cuts out expressiveness! Could anyone help me get started with this?

Thanks,
Trev Wignall

Date2012-05-18 21:33
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Sending Pitch Bend Data From Csound
Hello Trev,
I haven't actually used it, but it looks like the outkpb opcode might
do what you want.
There's also a outkpat for poly aftertouch, and outkc (or outkc14 for
higher precision) for controller data.
best
Oeyvind

2012/5/18 William Wignall :
> Hello,
>
> I'm working on a pitch to MIDI/amplitude to velocity tracker. I'd like to
> use the output 'koct' from the opcode 'pitch' to send MIDI pitch bend data
> out of csound. Since MIDI notes are fixed, bending and vibrato are
> impossible. On violin, this really cuts out expressiveness! Could anyone
> help me get started with this?
>
> Thanks,
> Trev Wignall



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2012-05-19 00:15
FromJim Aikin
Subject[Csnd] Re: Sending Pitch Bend Data From Csound
I've never tried this, but it strikes me you have a few issues to grapple
with. The koct output of pitch seems to want to lock the tracked pitch value
to scale steps. Assuming you're planning to use standard 12-note equal
temperament, you could set the ifrqs argument to 120 rather than 12, which
the opcode seems to allow. This would give the koct output a resolution of
1/10 semitone. After turning these fractional values into pitch-bend data
(somehow) and setting your receiving synth to a bend depth of 1 semitone,
you would have to detect when the pitch of the input signal has changed by a
large enough value that you need to terminate the current MIDI note, reset
the pitch-bend, and start a new MIDI note.

If 1/10 semitone is not enough resolution for your pitch-bends, you might
try inserting some sort of lag processor (lowpass filter) into the signal
path to smooth out the values before sending them as pitch-bend messages.

Don't know if this will help ... it's just off the top of my head.

--JA


--
View this message in context: http://csound.1045644.n5.nabble.com/Sending-Pitch-Bend-Data-From-Csound-tp5711962p5712158.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-05-20 00:57
FromWilliam Wignall
SubjectRe: [Csnd] Sending Pitch Bend Data From Csound
Just what I needed. Thanks!

Trev

On Fri, May 18, 2012 at 4:33 PM, Oeyvind Brandtsegg <oyvind.brandtsegg@ntnu.no> wrote:
Hello Trev,
I haven't actually used it, but it looks like the outkpb opcode might
do what you want.
There's also a outkpat for poly aftertouch, and outkc (or outkc14 for
higher precision) for controller data.
best
Oeyvind

2012/5/18 William Wignall <wwignall@berklee.edu>:
> Hello,
>
> I'm working on a pitch to MIDI/amplitude to velocity tracker. I'd like to
> use the output 'koct' from the opcode 'pitch' to send MIDI pitch bend data
> out of csound. Since MIDI notes are fixed, bending and vibrato are
> impossible. On violin, this really cuts out expressiveness! Could anyone
> help me get started with this?
>
> Thanks,
> Trev Wignall



--

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"