changeset 315:dec47312ed40 livemode

Use only a single piano template in live mode, for speed
author Chris Cannam
date Tue, 28 Apr 2015 12:20:39 +0100
parents f98ba4f47e49
children f3e10617a60d
files src/LiveInstruments.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/LiveInstruments.cpp	Tue Apr 28 11:24:23 2015 +0100
+++ b/src/LiveInstruments.cpp	Tue Apr 28 12:20:39 2015 +0100
@@ -63,6 +63,12 @@
 	}
 
 	templates.push_back(t);
+
+        // The live template for piano has only one piano in it, so as
+        // to process faster
+        if (original.name == "Piano") {
+            break;
+        }
     }
     
     InstrumentPack live(original.lowestNote,