aftertouch, channel pressure, pitchbend in script {}

Discuss problems and solutions.
Post Reply
IR_
Newbie
Posts: 5
Joined: 04 Apr 2014 19:10
Contact:

aftertouch, channel pressure, pitchbend in script {}

Post 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!
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: aftertouch, channel pressure, pitchbend in script {}

Post 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}
Last edited by oldgearguy on 20 Feb 2015 15:27, edited 1 time in total.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: aftertouch, channel pressure, pitchbend in script {}

Post 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.
oldgearguy
Regular
Posts: 315
Joined: 02 Nov 2013 11:19

Re: aftertouch, channel pressure, pitchbend in script {}

Post 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...
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: aftertouch, channel pressure, pitchbend in script {}

Post by Softcore »

No worries - that page is useful indeed!!! I use it all the time!
Post Reply