changeset 268:00d76494a722

Thresholds and tidy
author Chris Cannam
date Wed, 23 Jul 2014 18:28:29 +0100
parents a8c05709e486
children 40684b5dd478
files src/Instruments.cpp
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }