diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-17 20:06:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-17 20:06:00 +0200 |
commit | 84804f7d90019dff21ea7b99d00dc49fa41a9180 (patch) | |
tree | 2636a8da018311b63bca1a59e064fc940b987cc9 /libs/surfaces/faderport8/fp8_strip.cc | |
parent | 272e02b6c8840a33d8ff4b7026fb937a3c4729f5 (diff) |
cont'd FP8 tweaks
* include Mixbus PRE plugin on Mixbusses
* Mixbus master-assign on right-most "S" button
* fix parameter-banking and assignment
* fix typo in 029e963fb (fader range constaint)
Diffstat (limited to 'libs/surfaces/faderport8/fp8_strip.cc')
-rw-r--r-- | libs/surfaces/faderport8/fp8_strip.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/faderport8/fp8_strip.cc b/libs/surfaces/faderport8/fp8_strip.cc index a0a3b82457..071a6e2cb0 100644 --- a/libs/surfaces/faderport8/fp8_strip.cc +++ b/libs/surfaces/faderport8/fp8_strip.cc @@ -359,8 +359,8 @@ FP8Strip::notify_fader_changed () } float val = 0; if (ac) { - val = ac->internal_to_interface (ac->get_value()) * 16368.f; /* 16 * 1023 */ - val = std::max (0.f, std::min (1.f, val)); + val = ac->internal_to_interface (ac->get_value()); + val = std::max (0.f, std::min (1.f, val)) * 16368.f; /* 16 * 1023 */ } unsigned short mv = lrintf (val); if (mv == _last_fader) { |