File: MIDI_Learn_Sequence.txt

package info (click to toggle)
yoshimi 2.3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,980 kB
  • sloc: cpp: 62,590; xml: 97; sh: 94; python: 45; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

When receiving either a normal CC or an NRPN, the first action is to convert this to
a float in the range as close as possible to 0 - 127. The ratios are fiddled a bit
as otherwise you either couldn't quite reach 127, so some controls missed out a bit
on range, or you went slightly over which had odd results depending on the actual
control.

Next, the value is compressed or limited, and/or inverted depending on the Min Max
settings in the MIDI-learn window.

Finally it is expanded to the actual range of the control that was learned, using
the limits code. Controls that have a wider range than the incoming type will have
an evenly spaced granularity.