diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2018-06-08 00:15:27 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2018-06-08 10:50:07 +0200 |
commit | 7c14de074b3eee3ed283d0f92e67cd5ffbfb5658 (patch) | |
tree | b7718b72a69974f627b9d1017d5d0409476b8317 /drumgizmo | |
parent | 8f3f22bb5d9d6879bb21d0132a3e0d0af4cd5380 (diff) |
drumgizmoc: add set/enable master bleed option
Diffstat (limited to 'drumgizmo')
-rw-r--r-- | drumgizmo/drumgizmoc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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") |