diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-11-05 14:55:42 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-11-05 14:55:48 +0100 |
commit | 1e7485b7f42d64f86daf732b190ce287ef8ee33a (patch) | |
tree | 6b21dbaf70fb1c9d56b7cb7d6ca415f07d8d9140 /plugin/drumgizmo_plugin.cc | |
parent | 4d9ede3d127572efe2605d28f5930a475137e273 (diff) |
Store stddev sample selection scalar in plugin settings.
Diffstat (limited to 'plugin/drumgizmo_plugin.cc')
-rw-r--r-- | plugin/drumgizmo_plugin.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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()) + "</value>\n" " <value name=\"velocity_modifier_weight\">" + float2str(settings.velocity_modifier_weight.load()) + "</value>\n" + " <value name=\"velocity_stddev\">" + + float2str(settings.velocity_stddev.load()) + "</value>\n" " <value name=\"enable_velocity_randomiser\">" + bool2str(settings.enable_velocity_randomiser.load()) + "</value>\n" " <value name=\"velocity_randomiser_weight\">" + @@ -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"); |