Hi, this can be done but before I help you on this, I’m not sure it will have the desired effect.
Channel pressure by definition already effects all notes currently playing (channel) where polyphonic key pressure just effect the note you are applying pressure. Are you wanting to convert polyphonic key pressure to channel pressure?
Maybe you are wanting to convert channel pressure to resend notes (with different velocity). We can do that too, however there may be a side effect if the sound has an attack set. It may sound like you are striking the note again as opposed to applying greater pressure.
The trick in each case is to bitmap, all 88 keys (or 61 if you have a 61 note keyboard) and then use a timer to iterate through them all. For 61 keys it would take 2 global variables. For 88 keys it would take 3. (Global variables are 32 bit signed integers) 322=64 (3 left over bits) 323 = 96 (8 left over bits)
Let me know.
Bome Customer Care
Also available for paid consulting services: firstname.lastname@example.org