From 7c14de074b3eee3ed283d0f92e67cd5ffbfb5658 Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Fri, 8 Jun 2018 00:15:27 +0200 Subject: drumgizmoc: add set/enable master bleed option --- drumgizmo/drumgizmoc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drumgizmo') diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc index 6a2458b..5172666 100644 --- a/drumgizmo/drumgizmoc.cc +++ b/drumgizmo/drumgizmoc.cc @@ -44,6 +44,7 @@ #include "event.h" +#include "nolocale.h" typedef struct parm_token { @@ -80,6 +81,7 @@ static std::string usage(std::string name) output << "Usage: " << name << " [options] drumkitfile\n"; output << "Options:\n"; output << " -a, --async-load Load drumkit in the background and start the "; + output << " -b --bleed Set and enable master bleed"; output << "engine immediately.\n"; output << " -i, --inputengine dummy|test|jackmidi|midifile Use said event "; output << "input engine.\n"; @@ -204,6 +206,12 @@ int main(int argc, char* argv[]) async = true; }); + opt.add("bleed", required_argument, 'B', [&]() { + float bleed = atof_nol(optarg); + settings.enable_bleed_control = true; + settings.master_bleed = bleed; + }); + opt.add("inputengine", required_argument, 'i', [&]() { std::string engine = optarg; if(engine == "help") -- cgit v1.2.3