comparison src/LiveInstruments.cpp @ 303:d8468176339d livemode

More adjustments for live mode, including actually *using* the max frequency we calculated earlier
author Chris Cannam
date Fri, 05 Dec 2014 16:34:24 +0000
parents cac0be04c43c
children dec47312ed40
comparison
equal deleted inserted replaced
302:cac0be04c43c 303:d8468176339d
24 InstrumentPack 24 InstrumentPack
25 LiveAdapter::adapt(const InstrumentPack &original) 25 LiveAdapter::adapt(const InstrumentPack &original)
26 { 26 {
27 vector<InstrumentPack::Templates> templates; 27 vector<InstrumentPack::Templates> templates;
28 28
29 cerr << "LiveAdapter: reduced template height is " << SILVET_TEMPLATE_HEIGHT/5 << endl; 29 // cerr << "LiveAdapter: reduced template height is " << SILVET_TEMPLATE_HEIGHT/5 << endl;
30 30
31 for (vector<InstrumentPack::Templates>::const_iterator i = 31 for (vector<InstrumentPack::Templates>::const_iterator i =
32 original.templates.begin(); 32 original.templates.begin();
33 i != original.templates.end(); ++i) { 33 i != original.templates.end(); ++i) {
34 34
75 live.templateSize = live.templateHeight; 75 live.templateSize = live.templateHeight;
76 76
77 live.maxPolyphony = original.maxPolyphony; 77 live.maxPolyphony = original.maxPolyphony;
78 live.pitchSparsity = original.pitchSparsity; 78 live.pitchSparsity = original.pitchSparsity;
79 live.sourceSparsity = original.sourceSparsity; 79 live.sourceSparsity = original.sourceSparsity;
80 live.levelThreshold = original.levelThreshold/10; //!!! but why? 80 live.levelThreshold = original.levelThreshold / 20;
81 81
82 return live; 82 return live;
83 } 83 }
84 84
85 vector<InstrumentPack> 85 vector<InstrumentPack>