Mercurial > hg > silvet
diff src/LiveInstruments.cpp @ 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 | d8468176339d |
children | 7dda913d820b |
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,