Page 1 of 1
aftertouch, channel pressure, pitchbend in script {}
Posted: 20 Feb 2015 12:50
by IR_
I like to create a script where lemur target and channel are used by variables.
How to deal with midi-event messages like channel pressure, aftertouch and pitchbend within a midiout {} script?
Thanks for your help!
Re: aftertouch, channel pressure, pitchbend in script {}
Posted: 20 Feb 2015 15:05
by oldgearguy
Section 13.10 of the Lemur manual gives you the functions you can call.
If you wanted to roll it all into a generic MIDI message and use midiout(target, msg[]), you need to build up some pieces.
0xD0 is the channel pressure message start,
val is the channel pressure value,
target is your Lemur Target variable,
chan is your MIDI channel number - 1 (important!!)
ctrl become (0xD0 + chan) and msg becomes {ctrl, val}
Re: aftertouch, channel pressure, pitchbend in script {}
Posted: 20 Feb 2015 15:11
by Softcore
Oldgearguy, correct me if Im wrong but I believe channel pressure has its own header i.e. its NOT CC midi messages but rather a category of its own. As such, one would still need the midiout(target, msg{}) function to be able to send channel pressure data via scripts.
Re: aftertouch, channel pressure, pitchbend in script {}
Posted: 20 Feb 2015 15:24
by oldgearguy
Softcore wrote:Oldgearguy, correct me if Im wrong but I believe channel pressure has its own header i.e. its NOT CC midi messages but rather a category of its own. As such, one would still need the midiout(target, msg{}) function to be able to send channel pressure data via scripts.
right you are - I was thinking ctlout() was for generic controller messages (i.e. just not notes). I corrected the original post.
Here's the page I tend to use for checking MIDI messages:
http://www.midi.org/techspecs/midimessages.php
Lack of sleep can catch up to you...
Re: aftertouch, channel pressure, pitchbend in script {}
Posted: 20 Feb 2015 15:58
by Softcore
No worries - that page is useful indeed!!! I use it all the time!