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!
aftertouch, channel pressure, pitchbend in script {}
-
- Regular
- Posts: 315
- Joined: 02 Nov 2013 11:19
Re: aftertouch, channel pressure, pitchbend in script {}
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}
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}
Last edited by oldgearguy on 20 Feb 2015 15:27, edited 1 time in total.
Re: aftertouch, channel pressure, pitchbend in script {}
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.
-
- Regular
- Posts: 315
- Joined: 02 Nov 2013 11:19
Re: aftertouch, channel pressure, pitchbend in script {}
right you are - I was thinking ctlout() was for generic controller messages (i.e. just not notes). I corrected the original post.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.
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 {}
No worries - that page is useful indeed!!! I use it all the time!