# HG changeset patch # User Chris Cannam # Date 1406136509 -3600 # Node ID 00d76494a722ef11c9d3db5582b194290b79a441 # Parent a8c05709e48660a218bceb2c550ea8d80deac117 Thresholds and tidy diff -r a8c05709e486 -r 00d76494a722 src/Instruments.cpp --- a/src/Instruments.cpp Wed Jul 23 17:51:58 2014 +0100 +++ b/src/Instruments.cpp Wed Jul 23 18:28:29 2014 +0100 @@ -162,12 +162,11 @@ if (isBowedString(i)) { instr.maxPolyphony = 2; -// instr.levelThreshold = 3; + instr.levelThreshold = 5; stringTemplates.push_back(t); } if (isWind(i)) { instr.maxPolyphony = 2; -// instr.levelThreshold = 5; windTemplates.push_back(t); } if (isOK(instr)) { @@ -180,7 +179,7 @@ "Multiple or unknown instruments", allTemplates); all.maxPolyphony = 5; - all.levelThreshold = 6;//!!! but this does need to be a parameter too, or else we need to be able to detect very quiet stuff somehow + all.levelThreshold = 6; if (isOK(all)) { ii.insert(ii.begin(), all); } @@ -190,7 +189,7 @@ "String quartet", stringTemplates); strings.maxPolyphony = 5; - strings.levelThreshold = 3; + strings.levelThreshold = 5; if (isOK(strings)) { ii.push_back(strings); }