/*
- Copyright (C) 2009 Paul Davis
+ Copyright (C) 2009 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
string front = str.substr (0, first_space);
string back = str.substr (first_space);
- vector<string> path;
+ vector<string> path;
split (front, path, '/');
if (path.size() < 2) {
return -1;
}
- vector<string> rest;
+ vector<string> rest;
split (back, rest, ' ');
if (rest.size() < 1) {
if (path[1] == "gain") {
_subtype = Gain;
+ } else if (path[1] == "trim") {
+ _subtype = Trim;
+
} else if (path[1] == "solo") {
_subtype = Solo;
return -1;
}
} else if (path[1] == "send") {
-
+
if (path.size() == 3 && rest.size() == 2) {
if (path[2] == "gain") {
_subtype = SendGain;
return -1;
}
}
-
+
return 0;
}
{
if (banked()) {
return _rid + _bank_offset;
- }
+ }
return _rid;
}
{
if (n < _target.size()) {
return _target[n];
- }
-
+ }
+
return 0;
}