diff options
author | André Nusser <andre.nusser@googlemail.com> | 2019-03-22 01:09:15 +0100 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2019-05-11 14:58:45 +0200 |
commit | 9c5efc23764522597a53a8745860cec54ea55d69 (patch) | |
tree | d672afdf2e11553d36370cc1abbef5033557f85e /plugingui/humanizerframecontent.h | |
parent | 50b011c4740a5ec5338903b1d8b5fbb4b42f3df3 (diff) |
Add settings and GUI for new sampling algorithm.
Diffstat (limited to 'plugingui/humanizerframecontent.h')
-rw-r--r-- | plugingui/humanizerframecontent.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/plugingui/humanizerframecontent.h b/plugingui/humanizerframecontent.h index 4befae0..e8c0810 100644 --- a/plugingui/humanizerframecontent.h +++ b/plugingui/humanizerframecontent.h @@ -46,23 +46,38 @@ public: SettingsNotifier& settings_notifier); private: - float stddevSettingsToKnob(float value) const; - float stddevKnobToSettings(float value) const; + static float constexpr stddev_factor = 4.5f; + static float constexpr f_distance_factor = 4.f; + static float constexpr f_recent_factor = 1.f; + static float constexpr f_random_factor = .5f; void attackValueChanged(float value); void falloffValueChanged(float value); void stddevKnobValueChanged(float value); + void fDistanceKnobValueChanged(float value); + void fRecentKnobValueChanged(float value); + void fRandomKnobValueChanged(float value); + void stddevSettingsValueChanged(float value); + void fDistanceSettingsValueChanged(float value); + void fRecentSettingsValueChanged(float value); + void fRandomSettingsValueChanged(float value); - GridLayout layout{this, 3, 1}; + GridLayout layout{this, 3, 2}; LabeledControl attack{this, "Attack"}; // drummer strength LabeledControl falloff{this, "Release"}; // regain LabeledControl stddev{this, "StdDev"}; + LabeledControl f_distance{this, "fDistance"}; + LabeledControl f_recent{this, "fRecent"}; + LabeledControl f_random{this, "fRandom"}; Knob attack_knob{&attack}; Knob falloff_knob{&falloff}; Knob stddev_knob{&stddev}; + Knob f_distance_knob{&f_distance}; + Knob f_recent_knob{&f_recent}; + Knob f_random_knob{&f_random}; Settings& settings; SettingsNotifier& settings_notifier; |