[Csnd] Sending Pitch Bend Data From Csound
Date | 2012-05-18 15:51 |
From | William Wignall |
Subject | [Csnd] Sending Pitch Bend Data From Csound |
Attachments | Trev'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 |
Date | 2012-05-18 21:33 |
From | Oeyvind Brandtsegg |
Subject | Re: [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 |
Date | 2012-05-19 00:15 |
From | Jim 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. |
Date | 2012-05-20 00:57 |
From | William Wignall |
Subject | Re: [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, |