|
Can
I use incoming MIDI data to control animations?
There
are (at least) two ways of doing this:
1.
Use the sxSendInputWaiting(true) to activate a function
that will send a notification to the movieScript handler sxMIDIInWaiting
as soon as an event is present in the input buffer.
In the sxMIDIInWaiting handler, use the sxGetMIDIIn()
to retrieve the incoming message and use the result to control
the animation (or any other function You want to control)
2.
Put the sxGetMIDIIn() in an exitFrame handler and use
the result to control the animation (or any other function
You want to control)
The
same method can be used to monitor outgoing MIDI events, when
a Song is played. Of course You will have to use sxSendOutputWaiting(),
sxMIDIOutWaiting and sxGetMIDIOut Out() instead
of the functions mentioned above.
|