summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2019-05-11 21:02:27 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2019-05-11 21:02:27 +0200
commit18650bf589c459e60c2435d9a547218a744cdb32 (patch)
treeab32e46ab7ac2e52e1cd16070647510952560867 /plugin
parenteb362a5e4976d69509f35eb9e0c5771500041817 (diff)
Some cleaning up of the sample selection.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index acbb5a9..1d03fd2 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -593,10 +593,10 @@ std::string DrumGizmoPlugin::ConfigStringIO::get()
float2str(settings.velocity_modifier_weight.load()) + "</value>\n"
" <value name=\"velocity_stddev\">" +
float2str(settings.velocity_stddev.load()) + "</value>\n"
- " <value name=\"sample_selection_f_distance\">" +
- float2str(settings.sample_selection_f_distance.load()) + "</value>\n"
- " <value name=\"sample_selection_f_recent\">" +
- float2str(settings.sample_selection_f_recent.load()) + "</value>\n"
+ " <value name=\"sample_selection_f_close\">" +
+ float2str(settings.sample_selection_f_close.load()) + "</value>\n"
+ " <value name=\"sample_selection_f_diverse\">" +
+ float2str(settings.sample_selection_f_diverse.load()) + "</value>\n"
" <value name=\"sample_selection_f_random\">" +
float2str(settings.sample_selection_f_random.load()) + "</value>\n"
" <value name=\"enable_velocity_randomiser\">" +
@@ -660,14 +660,14 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string)
settings.velocity_stddev.store(str2float(p.value("velocity_stddev")));
}
- if(p.value("sample_selection_f_distance") != "")
+ if(p.value("sample_selection_f_close") != "")
{
- settings.sample_selection_f_distance.store(str2float(p.value("sample_selection_f_distance")));
+ settings.sample_selection_f_close.store(str2float(p.value("sample_selection_f_close")));
}
- if(p.value("sample_selection_f_recent") != "")
+ if(p.value("sample_selection_f_diverse") != "")
{
- settings.sample_selection_f_recent.store(str2float(p.value("sample_selection_f_recent")));
+ settings.sample_selection_f_diverse.store(str2float(p.value("sample_selection_f_diverse")));
}
if(p.value("sample_selection_f_random") != "")