# HG changeset patch # User Chris Cannam # Date 1430220039 -3600 # Node ID dec47312ed407d5e122deb23f93828e7e9176666 # Parent f98ba4f47e49c9de4327dc389482c804fec2e5d0 Use only a single piano template in live mode, for speed diff -r f98ba4f47e49 -r dec47312ed40 src/LiveInstruments.cpp --- 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,