florian
2010-06-07 11:20:49
Hi, here's a way how to solve the problem of a smooth fade out with Midi Translator:
Assume you have a button that sends MIDI 90 40 7F when pressed. You want this button to trigger the fade out. The fade out is executed by sending a CC#7. Then you can use these translators:
This is a slow fadeout (128*50ms = 6.4 seconds). Lower the timer times to make a faster fade out.
Florian
Assume you have a button that sends MIDI 90 40 7F when pressed. You want this button to trigger the fade out. The fade out is executed by sending a CC#7. Then you can use these translators:
Code: Select all
Translator 0: Button: Trigger timer
Options: stop=false
Incoming: MIDI 90 40 7F
Rules: Initialize Fade Value
g0=128
Outgoing: Timer 128 times "Fade Out": 50 ms (initial delay: 50 ms)
Translator 1: On Timer: Send CC
Options: stop=false
Incoming: On timer "Fade Out"
Rules: Decrement g0 before sending the CC
g0=g0-1
Outgoing: MIDI B0 07 g0
Florian