summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/Makefile.mingw32.in1
-rw-r--r--plugin/drumgizmo_plugin.cc21
2 files changed, 22 insertions, 0 deletions
diff --git a/plugin/Makefile.mingw32.in b/plugin/Makefile.mingw32.in
index 4e324af..2c2055c 100644
--- a/plugin/Makefile.mingw32.in
+++ b/plugin/Makefile.mingw32.in
@@ -113,6 +113,7 @@ GUI_SRC = \
@top_srcdir@/plugingui/utf8.cc \
@top_srcdir@/plugingui/verticalline.cc \
@top_srcdir@/plugingui/visualizerframecontent.cc \
+ @top_srcdir@/plugingui/voicelimitframecontent.cc \
@top_srcdir@/plugingui/widget.cc \
@top_srcdir@/plugingui/window.cc \
@top_srcdir@/plugingui/lodepng/lodepng.cpp
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 98299ee..b955eb3 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -651,6 +651,12 @@ std::string DrumGizmoPlugin::ConfigStringIO::get()
float2str(settings.powermap_fixed2_y.load()) + "</value>\n"
" <value name=\"powermap_shelf\">" +
bool2str(settings.powermap_shelf.load()) + "</value>\n"
+ " <value name=\"enable_voice_limit\">" +
+ bool2str(settings.enable_voice_limit.load()) + "</value>\n"
+ " <value name=\"voice_limit_max\">" +
+ int2str(settings.voice_limit_max.load()) + "</value>\n"
+ " <value name=\"voice_limit_rampdown\">" +
+ float2str(settings.voice_limit_rampdown.load()) + "</value>\n"
"</config>";
}
@@ -811,6 +817,21 @@ bool DrumGizmoPlugin::ConfigStringIO::set(std::string config_string)
settings.powermap_shelf.store(p.value("powermap_shelf") == "true");
}
+ if(p.value("enable_voice_limit") != "")
+ {
+ settings.enable_voice_limit.store(p.value("enable_voice_limit") == "true");
+ }
+
+ if(p.value("voice_limit_max") != "")
+ {
+ settings.voice_limit_max.store(str2int(p.value("voice_limit_max")));
+ }
+
+ if(p.value("voice_limit_rampdown") != "")
+ {
+ settings.voice_limit_rampdown.store(str2float(p.value("voice_limit_rampdown")));
+ }
+
std::string newkit = p.value("drumkitfile");
if(newkit != "")
{