diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-04-12 18:16:50 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-05-02 15:37:23 +0200 |
commit | d9c671d14dacf3d7c02305df9b7d5fba67357a55 (patch) | |
tree | 5cc26dbfa910a4a7b6357157bea439d6330b0532 /plugin | |
parent | 2c395c676ebe4c821ac7126323ab0c15febb9bfe (diff) |
Add setting and knob for controlling resampling quality.
Diffstat (limited to 'plugin')
-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 87ce160..a91606b 100644 --- a/plugin/drumgizmo_plugin.cc +++ b/plugin/drumgizmo_plugin.cc @@ -612,6 +612,8 @@ std::string DrumGizmoPlugin::ConfigStringIO::get() float2str(settings.velocity_randomiser_weight.load()) + "</value>\n" " <value name=\"enable_resampling\">" + bool2str(settings.enable_resampling.load()) + "</value>\n" + " <value name=\"resampling_quality\">" + + float2str(settings.resampling_quality.load()) + "</value>\n" " <value name=\"disk_cache_upper_limit\">" + int2str(settings.disk_cache_upper_limit.load()) + "</value>\n" " <value name=\"disk_cache_chunk_size\">" + @@ -713,6 +715,11 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string) settings.enable_resampling.store(p.value("enable_resampling") == "true"); } + if(p.value("resampling_quality") != "") + { + settings.resampling_quality.store(str2float(p.value("resampling_quality"))); + } + if(p.value("disk_cache_upper_limit") != "") { settings.disk_cache_upper_limit.store(str2ll(p.value("disk_cache_upper_limit"))); |