twintip
2008-09-13 15:54:27
I want to use a midi knob to control the tempo in ableton, but I want bomes to convert the signal into smoothed 14 bit message, how can I do this?
twintip
2008-09-13 15:54:27
florian
2008-10-21 11:10:29
twintip
2008-10-21 23:09:42
florian
2008-10-22 10:04:38
twintip
2008-10-22 19:21:19
it's one that does 0 - 127.florian wrote:What kind of knob is it? a knob which outputs 0..127 (i.e. 00..7F in hex) as data, or an endless encoder? If the latter, what does it output? (use Capture MIDI in Edit Translator window).
Thanks,
Florian
florian
2008-10-23 01:43:20
Some explanations:Translator 1: Controller Input (set target value gt)
Incoming: MIDI B0 01 pp
Rules:
gt = pp * 128
if pp=127 THEN gt = 16383
Outgoing: start timer SMOOTH: 0ms initial, 10ms repeat delay, indefinitely
Translator 2: calculate and send out smoothed value. gc=current value
Incoming: Timer SMOOTH
Rules:
if gc < gt THEN GOTO "increase"
Label "decrease"
gc = gc - 3
if gc < gt THEN gc = gt
GOTO "cont"
Label "increase"
gc = gc + 3
if gc > gt THEN gc = gt
Label "cont"
pp = gc & 127
qq = gc / 128
Outgoing: MIDI E0 pp qq
Translator 3: stop timer if necessary
Incoming: Timer SMOOTH
Rules:
if gc != gt THEN "exit rules, skip Outgoing Action"
Outgoing: Stop timer SMOOTH
twintip
2008-10-23 09:44:00