D0 - Channel pressure question

Discuss Lemur and share techniques.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

D0 - Channel pressure question

Post by Softcore »

Ok so...Im building something and the following questions occured to me...

1. What is the "standard" (if any) behaviour of a midi keyboard equiped with channel pressure messages in regards to what happens AFTER the user releases a key? Does the channel pressure value return to 0 or does it stay at the last value it was before the user lifted his finger? It makes sense that it goes to 0 (pressure is indeed 0 after all) but if one is to map it to a fairly audible parameter on his synth, after lifting the finger the "difference" in the sound timbre is too, ermmmm, disruptive in some cases - due to the channel pressure value "jumping" to 0 , the result depending on where channel pressure has been used as a modulator isnt that much "musical". Perhaps thats for the user to consider when using it as modulation source or is it that on an actual midi keyboard the pressure value "decays" to 0 after lifting the finger?

2. If the user has a key pressed, and a second key is pressed, does the channel pressure "jumps" from the first value (first finger) to the last (second) or something else happens?

Anyone knowledgeable to reply? Thanks in advance!
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: D0 - Channel pressure question

Post by Softcore »

Hmmmm I found this so perhaps according to this I sort of have the answer to my second question - not sure about the first one though!

edit: oops forgot to post what I found:
http://home.roadrunner.com/~jgglatt/tec ... essure.htm
Joe Soap
Regular
Posts: 462
Joined: 07 Jul 2012 15:04

Re: D0 - Channel pressure question

Post by Joe Soap »

Hi SC . . . I believe the info at your posted link is slightly misleading as regards nomenclature.

Aftertouch and Channel Pressure aren't different things. The author of that particular piece is taking two different names for the same (class of) thing and assigning one name to be correct for "channel" and the other to be specific to "polyphonic".

IOW . . . "aftertouch" and "pressure" are interchangeable. The difference of note is "channel" versus "polyphonic" (or simply "poly").


As to the answer to your real question - have you looked into the little-used but very handy Release Velocity? That seems like it would be a good fit as a modifier to control what happens to any Pressure messages upon releasing a key.

Whether or not it's supported in your DAW or other destination of choice is anyones guess.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: D0 - Channel pressure question

Post by Softcore »

Thing is, they ARE different in regards to MIDI - D0 is channel pressure....A0 is key pressure (aftertouch, or polyphonic aftertouch as some manufacturers name it)

The reason though Im asking is not because I want to decide on how to modulate my synths...rather on how to correctly implement the feature on my design of a "Lemur velocity and pressure/aftertouch midi keys" template. (think something like the keys of Animoog where the position of the finger on the key defines velocity and pressure/aftertouch) . Obviously, my second question is irrelevant for Key pressure - polyphonic aftertouch where each key generates its own pressure midi values. According to the link above, when we have channel pressure though, an average is calculated (from the pressures of all keys) and being sent - or simply by using a single pressure sensor - ok, so we got my second question covered.

;)

But my number 1 question is:

While testing the functionality, I mapped the key pressure to the pitch of an oscillator in a synth and it occured to me - everytime I lift my finger, a pressure value of 0 is sent, my question is not whether me as a user desires this or not but rather what an ACTUAL midi keyboard would do - would it send a pressure 0 value or it would just send nothing after lifting the finger from the key? ;) If of course this behaviour is standardised amongst manufacturers.
Last edited by Softcore on 22 Jan 2013 22:12, edited 1 time in total.
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: D0 - Channel pressure question

Post by Macciza »

Hi
Thinking of how it is physically implemented may help . .
As the key is pressed it hits a pressure sensor, you can then vary the pressure , and it decreases to zero at some rate as you release the key . . .
how this informs your implementation ? i am not sure . . There is a fundamental interface difference . . .
Perhaps you need to look at some provision for values to ramp down at different rates . .
So Yes the values should go down to 0 as you release the key . .
Just off the top of my head . .
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: D0 - Channel pressure question

Post by Softcore »

Hmm I see....so its a decremental affair down to zero at a given rate and not a "jump" to 0 you say......Hmmmmm, things start to get complicated then! lol
Joe Soap
Regular
Posts: 462
Joined: 07 Jul 2012 15:04

Re: D0 - Channel pressure question

Post by Joe Soap »

Yeah - D0 and A0 are different controller numbers - but they're both aftertouch / pressure. One channel, one poly.

I'm just saying the guy's mixed up in nomenclature - not that channel and poly pressure / aftertouch are the same thing (I know the difference).

And my post wasn't really aimed at you, more FTR - I presumed you knew the story! :D

I'm not sure all manufacturers implement CP properly either (as the mean of all pressed keys) - some opting to just sample the first key pressed or whatever.

Does Lemur support Release Velocity? I'm not sure how it could unless sensors in the touchscreen can track the surface area of a depressed finger or thumb, for instance. So I think Macciza's thinking here is correct . . . fundamental differences in the hardware will require some sort of compromise / workaround - maybe something like the lagging-fader to set a rampdown upon key-release?
Phil999
Regular
Posts: 919
Joined: 11 Jan 2012 01:53

Re: D0 - Channel pressure question

Post by Phil999 »

yes, there are two kinds:

a) monophonic aftertouch. AKA channel aftertouch. Every middle-class keyboard has it. One parameter is sent, regardless of the key number.
b) polyphonic aftertouch. AKA key aftertouch. Only few high-end keyboards have it. It's expensive, because each key has an individual pressure sensor.

Now, what means 'pressure'? Is it a) or b)? In hardware, it is rather clear, it's mostly a), if the keyboard costs less than $2000.

But, on the target side there are also restrictions. Not many synths or samplers can receive b). Even software instruments.

Touchscreens offer today the possibility to output b), which is an enormous possibility because you don't have to spend a fortune for poly aftertouch anymore. For example, I can play the Largo and Diva VSTi with SynthX's MIDI out in full polyphonic aftertouch, something I can't do with all hardware keyboards available to me. This is just great, a dream came true. I'm only beginning to explore this potential. In Diva, b) is simply called 'Pressure', and without knowing which kind of AT it is I had to try.

Now, for the question: I don't know how real keyboards featuring b) send poly AT values; I planned to get such a keyboard, but never got one unfortunately. Yeah I also guess it goes to zero after release.

I'm very interested in your findings.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: D0 - Channel pressure question

Post by Macciza »

Also
I generally go to the source to check MIDI specs http://www.midi.org/techspecs/midimessages.php

Channel Pressure (After-touch). This message is most often sent by pressing down on the key after it "bottoms out". This message is different from polyphonic after-touch. Use this message to send the single greatest pressure value (of all the current depressed keys). (vvvvvvv) is the pressure value.

Well it depends on how quickly you have released the pressure off the keys . ..
I seem to recall that you could get 0 values by reducing pressure but still having the keys held - ie note still on
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: D0 - Channel pressure question

Post by Softcore »

Its true that most of my VST synths I tried respond ONLY to channel pressure and not the true, polyphonic aftertouch messages (I tried using Lemur).

And yeah, if it goes back to 0 I also think a ramp down with a user-definable rate should be implemented.

As for release velocity a "compromise" could be made - it already has been made in various midikeys implementations in ipad synths - usually the y position of the finger on a key when pressed indicates the velocity - one could make it so that the y position of the finger when the key is released determines the Release Velocity although that is not what Im after - Im after key/channel presure data as the end user (including me) is most likely to have a compatible VST synth for these values rather than Release Velocity! ;)

As I was typing Macciza replied: Thanks for the link Macciza - I will check it out!
Post Reply