From 18650bf589c459e60c2435d9a547218a744cdb32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 11 May 2019 21:02:27 +0200 Subject: Some cleaning up of the sample selection. --- plugin/drumgizmo_plugin.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugin') 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()) + "\n" " " + float2str(settings.velocity_stddev.load()) + "\n" - " " + - float2str(settings.sample_selection_f_distance.load()) + "\n" - " " + - float2str(settings.sample_selection_f_recent.load()) + "\n" + " " + + float2str(settings.sample_selection_f_close.load()) + "\n" + " " + + float2str(settings.sample_selection_f_diverse.load()) + "\n" " " + float2str(settings.sample_selection_f_random.load()) + "\n" " " + @@ -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") != "") -- cgit v1.2.3