How to convert polyphonic key pressure to channel pressure
I would like to do that to be able to easily switch between the two without having to dive into the keyboard settings.
Basically, I get that this patch would have to compare all incoming pressure data from each key and only send out the one, that is the biggest value of all keys. E.g., when C3 has a key pressure value of 50, E3 of 60 and G3 of 70, the pressure of C3 and and E3 get filtered out. But I need a logic for all 88 keys filtering out every value but the highest of all.
I could imaginge how to do that in a very complicated way, but I haven't found the simple solution to this problem, that surely exists!
Sorry, I had a year of a Max pause, so my logical thinking has become a little rusty! :-)
Hmmm, had a think about that over a cuppa, but it's not as simple as I first thought.
You're wanting the highest poly pressure at any given moment which, I think, would mean that every time a new value came in from any key you'd have to check 'em all again. An idea that's not too complicated but might not be that efficient (dunno?) might be to store each incoming PP value in a table with a range of 128 and a size of 88. (Or make the size 108 and don't bother subtracting 21 from the note numbers just to make it fit in as small a table as possible.) Then send the table a "max" message to see what the highest one is. Haven't thought it through so I don't know if it'd work.
What keyboard is it, BTW? A Kurzweil of some sort?
Cheers, Bill
Can't test it cos I don't have a source of poly pressure.
Better still:
1. isloate all key pressure values from all running notes
2. write them into a list
3. use [maxmimum] to find the maximum value in the list.
Splendid! The table with the max argument it is! Thanks alot to both of you!
I have a Kurzweil Midiboard, yes. If you are insterested in Polyphoonic aftertouch, you should take a look at this:
https://www.kickstarter.com/projects/1200817609/vax-midi-keyboard-controller
the funding has already been successful and is finished, but maybe you can still contact Van to order one with the first release. If not, there will certainly another one.
Can't have enough of good keyboards with polyphonic aftertouch, really! ;-)
P.S: Roman, I was crossposting with you! I am sure the idea with the list also works. It is basically the same concept. It is always great, to see how helpful this community tends to be!
Glad it's suitable for you Friflo. :-)
You'll probably want to add a [change] object between the [table] and [touchout]. I reckon it'd be better for Max to work a bit harder removing duplicates than to clog your MIDI cables with them.
Thanks for the kickstarter link. That keyboard looks absolutely brilliant!! Reading comments about it on another site led me to stuff like the Roli Seaboard and Haken Continuum, too.
So many fantastic devices! So little money...
Cheers, Bill
I could try the seaboard on Musikmesse. Honestly, I didn't like it as much as I thought, I liked the Continuum way more, but that is really the most espensive one out there ... the Vax is a bargain in comparison to both.
I did add the change object, by the way! Thankls for pointing that out.
How 'bout that?!
9 months later, my new CME XKey Air 25 arrives, complete with polyphonic aftertouch, and there I am - searching the forum for whatever it was that I'd made for whoever it was so I could use it myself.