« Return to Thread: different pitches during a live-midi performance

Re: Re: Re: different pitches during a live-midi performance

by Art Hunkins :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello, Stefan,
 
Here's what I'd try:
 
In header:
gkpedal init 0
 
and after your massign:
massign 64, 2
(or whatever controller # your foot pedal is, assign its data to instr 2. The massigns may be tricky.)
You should be able to use any type of foot pedal your MIDI keyboard will accept.
 
Make a completely new instrument that receives MIDI data only on controller 64 (or whichever # you choose):
instr 2
gkpedal ctrl7 1, 64, 0, 1
endin
 
The above instrument is always receiving foot controller data.
 
In the score, add:
i2 0 3600
 
In your instr1, add (at beginning):
ipedal = i(gkpedal)
 
and later (after icps computed):
if imnn != 60 and imnn != 62 and notnum ...... igoto skip ; this is a list of *all your black MIDI key numbers*!
icps = (ipedal > 0? icps - (icps * .1): icps + (icps * .1)
skip:
 
In the above, ".1" is the percentage of the frequency you wish to add or subtract from your "basic pitch" (12tet).
 
You may want to make some other kind of pitch adjustment. For example you might put the low version (freq) of the black key pitch in your table, then multiply it by some factor if the pedal were up (gkpedal == 0):
icps = (ipedal > 0? icps + (icps * .1): icps)
Or perhaps you want different groups of "igoto" branches, where for example all F#'s modify in one way, all G#'s in another.
 
Let me know how it works out for you.
 
Art Hunkins
----- Original Message -----
From: kontrapunktstefan@...
To: csound@...
Sent: Friday, July 03, 2009 3:22 AM
Subject: [Csnd] Re: Re: different pitches during a live-midi performance

Dear Art,
thanks for Your answer. I have attached a small example to this mail.
I use there a scale with 17 pitches per octave but (as You all know)I do have only 12 pitches per octave on the keyboard.
I would like to allocate the black key two pitches and I would like to change this with the pressure of the una-corda-pedal (the left pedal). While pressing the left pedal down, I would like to get a lower pitch, in the other case, the higher pitch.
But I have no idea, how to do it with csound. So, I really need Your help!
At least I hope, that my idea of negotiating the limitation of 12 pitches per octave in this way will be interesting for other musicians to.
Thanks
Stefan
:

2009/7/2 Art Hunkins <abhunkin@...>
Yes, certainly. But tell us more what you have in mind.
 
I assume your keyboard would be a MIDI controller, correct?
 
An obvious choice would be a MIDI foot controller input through the keyboard, or a MIDI footswitch in conjunction with a foot controller or a portamento pedal.
 
If you need specific pitches from the pedal(s) - even from a standalone portamento pedal, Csound could "round" the pedal to the nearest pitch, or indeed add a rounded percentage to the current keyboard pitch.
 
There are many possibilities.
 
Art Hunkins
----- Original Message -----
Sent: Thursday, July 02, 2009 11:57 AM
Subject: [Csnd] different pitches during a live-midi performance

Dear community,
I want to know, if it could be possible, to get different pitches for e.g. fis and ges during a live-midi performance.
What I desire, is to influence the pitch by a controller, e.g. the left piano-pedal.
I'm not speaking of pitch-bending, I really mean an exact, clearly regognizable pitch, when You press a key with od without this controller.
Is it possible?

 « Return to Thread: different pitches during a live-midi performance