diff src/Instruments.cpp @ 213:5bde003a43a9

Make source sparsity configurable in instrument pack as well as pitch sparsity; make both equal to 1 for piano templates
author Chris Cannam
date Tue, 15 Jul 2014 13:28:25 +0100
parents 4840c6306b4f
children c0779464b792
line wrap: on
line diff
--- a/src/Instruments.cpp	Tue Jul 15 13:26:56 2014 +0100
+++ b/src/Instruments.cpp	Tue Jul 15 13:28:25 2014 +0100
@@ -132,9 +132,11 @@
 			 "Piano",
 			 pianoTemplates);
 //    piano.maxPolyphony = 8;
-//    piano.levelThreshold = 3;
+//    piano.levelThreshold = 4;
     piano.maxPolyphony = 5;
     piano.levelThreshold = 6;
+    piano.pitchSparsity = 1.0;
+    piano.sourceSparsity = 1.0;
     if (isOK(piano)) {
 	ii.push_back(piano);
     }
@@ -145,6 +147,7 @@
     for (int i = 0;
 	 i < int(sizeof(simpleInstruments)/sizeof(simpleInstruments[0]));
 	 i += 2) {
+
 	vector<Templates> tt;
 	Templates t = templatesFor(simpleInstruments[i+1]);
 	tt.push_back(t);