One question though, I noticed that when you use scaled=1 when calling sv_get_module_ctl_max, it returns 0 instead of the expected 32768 when calling it for a controller that is of scaled type.
Is it safe to assume that anywhere 0 is returned in that situation, 32768 should be used instead?
Code: Select all
Velocity2Ctl
┏━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ # ┃ Name ┃ Type ┃ Group ┃ Range (Real) ┃ Range (Scaled) ┃ Range (Display) ┃ Offset ┃
┡━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━┩
│ 0 │ On NoteOFF │ ENUM │ 0 │ [0, 2] │ [0, 2] │ [0, 2] │ 0 │
│ 1 │ OUT min │ SCALED │ 1 │ [0, 32768] │ [0, 0] │ [0, 32768] │ 0 │
│ 2 │ OUT max │ SCALED │ 1 │ [0, 32768] │ [0, 0] │ [0, 32768] │ 0 │
│ 3 │ OUT offset │ SCALED │ 1 │ [0, 32768] │ [0, 0] │ [-16384, 16384] │ -16384 │
│ 4 │ OUT controller │ ENUM │ 1 │ [0, 255] │ [0, 255] │ [0, 255] │ 0 │
└───┴────────────────┴────────┴───────┴──────────────┴────────────────┴─────────────────┴────────┘