summaryrefslogtreecommitdiff
path: root/plugin/drumgizmo_plugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/drumgizmo_plugin.cc')
-rw-r--r--plugin/drumgizmo_plugin.cc7
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");