[JW Lua] Adding MIDI controller messages with Lua
Jan Angermüller
jan at angermueller.com
Mon Jan 13 18:14:35 CET 2014
Hi Jari,
is it possible with Lua to add MIDI controller messages
at the beginning of each staff (e.g. in the first measure) ?
For example:
The flute staff is set to VST bank 3, channel 14.
Then add a midi controller message on the flute staff
sending "CC#20" with value 127 (or just any MIDI message ...).
This would be the MIDI message $bc $14 $7f
($bc: CC message (=$b) on channel 14 ($c) for controller 20 (=$14)
with value 127 (=$7f)).
The idea is to send certain MIDI initialization messages when starting
playback
directly to the external MIDI devices (=external sample engines).
It is now possible to do this with adding many hidden expressions.
But when working with more than 40 staves for a large orchestra score
and sending individual messages per staff,
a Lua script would make it much easier.
Or if it is not possible, is it possible to simply send MIDI
messages with a Lua script without adding it to measures ?
Something like the Finale "MIDI/Audio / Send MIDI value" function does.
Then one could simply start the Lua script before clicking on play.
Automatically adding MIDI messages might also be an improvement for
human playback instrument techniques that are not accessible through the
human
playback instrument techniques interface, for example with sophisticated
sample engines like Vienna Symphonic library. But that's more advanced
stuff...
In the framework reference I found:
http://www.finaletips.nu/frameworkref/class_f_c_midi_expression.html
Probably it works with this.
I would appreciate it a lot if you could give me some starting hints.
Thanks a lot,
Jan Angermueller
More information about the JWLua
mailing list