config:remotecontrol:midi
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
config:remotecontrol:midi [2016/08/30 10:26] – [Configuration] tw | config:remotecontrol:midi [2019/07/09 16:18] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 38: | Line 38: | ||
PLAYER 1-1 VOLUME $DATA2/127 | PLAYER 1-1 VOLUME $DATA2/127 | ||
- | | + | |
+ | Or for voicetracking player A: | ||
+ | |||
+ | VT PLAYER A VOLUME $DATA2/ | ||
This will set the volume to the fader position. The ''/ | This will set the volume to the fader position. The ''/ | ||
Line 44: | Line 48: | ||
===== Scripting ===== | ===== Scripting ===== | ||
+ | |||
+ | Any received MIDI message will also be passed to background scripts, using the following procedure: | ||
+ | |||
+ | // Called when a MIDI message is received | ||
+ | procedure OnMidiMessage(Device: | ||
+ | begin | ||
+ | end; | ||
+ | | ||
+ | There is another procedure that will catch all MIDI SysEx messages: | ||
+ | |||
+ | // Called when a MIDI sysex is received | ||
+ | procedure OnMidiSysex(Device: | ||
+ | begin | ||
+ | end; | ||
+ | |||
+ | If you want to send back messages to the MIDI device, you should first enumerate the available devices, as the order of the output devices will not necessarily coincide with the order of the input devices. The following procedure will list all available output devices to the System Log: | ||
+ | |||
+ | MidiOutListDevices; | ||
+ | | ||
+ | At the beginning of your script (or in the '' | ||
+ | |||
+ | MidiOutOpen(1); | ||
+ | | ||
+ | Then you can send messages to that device. Note that we use hexadecimal values here, prefixed by '' | ||
+ | |||
+ | MidiOut(1, $B0, $10, 0); // device, status, data1, data2 | ||
+ | | ||
+ | There is also a procedure to send out SysEx messages: | ||
+ | |||
+ | MidiOutSysEx(1, | ||
+ | |||
+ | At the end of the script, or in '' | ||
+ | |||
+ | MidiOutClose(1); | ||
config/remotecontrol/midi.txt · Last modified: 2020/01/12 14:29 by tondose