Differences
This shows you the differences between two versions of the page.
streambyter_cc_high_range_remap [2021/05/15 22:12] – created _ki | streambyter_cc_high_range_remap [2021/05/15 22:27] (current) – _ki | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== StreamByter: | ====== StreamByter: | ||
The following script allows to remap the values of a specific CC. Values higher than a threshold are remapped to a new range. | The following script allows to remap the values of a specific CC. Values higher than a threshold are remapped to a new range. | ||
+ | |||
+ | One of its use-cases is to remap the x-axis of an XY CC controller sending CC-1 vibrato messages to slowly fade in only in the right half of the XY controller and at the same time limit the maximum vibrato depth at the right edge of the XY controller to a specific range. | ||
< | < | ||
Line 10: | Line 12: | ||
# 0 to Threshold | # 0 to Threshold | ||
# Threshold to 127 0 to Output Range | # Threshold to 127 0 to Output Range | ||
- | # | ||
- | # One of its use-cases is to remap an XY CC controller | ||
- | # to output its vibrato CC-1 only on the right half of | ||
- | # the XY controller and at the same time limit the | ||
- | # vibrato to a specific range | ||
# | # | ||
# Author: -ki | # Author: -ki | ||
Line 92: | Line 89: | ||
end | end | ||
- | # Slide Output_Range change, update CC if needed | + | # Output_Range |
if M0 == F0 7D 01 06 | if M0 == F0 7D 01 06 | ||
remap last_M2 | remap last_M2 |