From 1e7485b7f42d64f86daf732b190ce287ef8ee33a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 5 Nov 2017 14:55:42 +0100 Subject: Store stddev sample selection scalar in plugin settings. --- plugin/drumgizmo_plugin.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc index debe630..c8d8392 100644 --- a/plugin/drumgizmo_plugin.cc +++ b/plugin/drumgizmo_plugin.cc @@ -553,6 +553,8 @@ std::string DrumGizmoPlugin::ConfigStringIO::get() float2str(settings.velocity_modifier_falloff.load()) + "\n" " " + float2str(settings.velocity_modifier_weight.load()) + "\n" + " " + + float2str(settings.velocity_stddev.load()) + "\n" " " + bool2str(settings.enable_velocity_randomiser.load()) + "\n" " " + @@ -598,6 +600,11 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string) settings.velocity_modifier_weight.store(str2float(p.value("velocity_modifier_weight"))); } + if(p.value("velocity_stddev") != "") + { + settings.velocity_stddev.store(str2float(p.value("velocity_stddev"))); + } + if(p.value("enable_velocity_randomiser") != "") { settings.enable_velocity_randomiser.store(p.value("enable_velocity_randomiser") == "true"); -- cgit v1.2.3