Clockpresets.ini secrets (midiclock 2.02)
November 15, 2009Serge Comments Off on Clockpresets.ini secrets (midiclock 2.02)By editing the clockpresets.ini file, you can achieve even more
advanced remote control of midiclock. Enable HexSpy to monitor the
incoming midi messages. It will help you determine which entries
you need to add to the ini file.
The BPM_PRESETS section contains the tempo settings for all patch selects.
You can add action codes to any of these entries.
Additionally you can add special commands which translate an incoming
midi message (such as midi control messages) into a midiclock action.
This is done in the SPECIAL_COMMANDS section.
The following target action codes can be executed on incoming midi commands :
(only usable by editing the ini file) :
0 = do nothing
1 –> 200 = set this specific BPM value
10000 = perform midi value to tempo transformation (see below)
10001 = start-stop
10002 = pause
10003 = continue
10004 = start
10005 = stop
10006 = decrease tempo
10007 = increase tempo
In case of action 10000 –> midi value to tempo transformation :
for the last byte you can use a specific value or
selectable range transformation from this list of presets :
Preset 0xF0: From 0x00 to 0x7F –> multiplier = 1.58 and offset = 0
Preset 0xF1: From 0x00 to 0x7F –> multiplier = 1 and offset = 0
Preset 0xF2: From 0x00 to 0x7F –> multiplier = 2 and offset = 0
Preset 0xF3: From 0x00 to 0x7F –> multiplier = 3 and offset = 0
Preset 0xF4: From 0x00 to 0x7F –> multiplier = 4 and offset = 0
Preset 0xFA: From 0x00 to 0x3F –> multiplier = 2 and offset = 0
Preset 0xFB: From 0x40 to 0x7F –> multiplier = 2 and offset = 0
Preset 0xFC: From 0x00 to 0x3F –> multiplier = 2 and offset = 50
Preset 0xFD: From 0x40 to 0x7F –> multiplier = -2 and offset = 306
Preset 0xFF: From 0x01 to 0x7F –> multiplier = 2 and offset = 0
An example in the clockpresets.INI file :
[BPM_PRESETS]
# this sets the tempo to 140 when program nr 1 is selected
PROGRAM1=140
# this sends start when program nr 2 is selected
PROGRAM2=10004
# this sends stop when program nr 3 is selected
PROGRAM3=10005
[SPECIAL_COMMANDS]
# this example enables using the modulation wheel to control the tempo
# F0 means the range transform setting accepts full controller range
# it sets tempo to (controller value)*1.58
# which maps the midi range 00-7F on bpm range 1 to 200
INPUT0=B102F0
ACTION0=10000
** use ACTION code 20001 for tap tempo message input