comparison src/Instruments.cpp @ 267:a8c05709e486

Merge from branch "norm"
author Chris Cannam
date Wed, 23 Jul 2014 17:51:58 +0100
parents c9d2809cb86d
children 00d76494a722
comparison
equal deleted inserted replaced
250:ec296f783a6f 267:a8c05709e486
120 InstrumentPack::listInstrumentPacks() 120 InstrumentPack::listInstrumentPacks()
121 { 121 {
122 vector<InstrumentPack> ii; 122 vector<InstrumentPack> ii;
123 123
124 vector<Templates> allTemplates; 124 vector<Templates> allTemplates;
125 //!!! is piano-maps-SptkBGCl the same as one of piano1, piano2, piano3?
126 allTemplates.push_back(templatesFor("piano1")); 125 allTemplates.push_back(templatesFor("piano1"));
127 allTemplates.push_back(templatesFor("piano2"));
128 allTemplates.push_back(templatesFor("piano3"));
129 allTemplates.push_back(templatesFor("pianorwc"));
130 126
131 vector<Templates> pianoTemplates; 127 vector<Templates> pianoTemplates;
132 pianoTemplates.push_back(templatesFor("piano1")); 128 pianoTemplates.push_back(templatesFor("piano1"));
133 pianoTemplates.push_back(templatesFor("piano2")); 129 pianoTemplates.push_back(templatesFor("piano2"));
134 pianoTemplates.push_back(templatesFor("piano3")); 130 pianoTemplates.push_back(templatesFor("piano3"));
135 pianoTemplates.push_back(templatesFor("pianorwc")); 131 pianoTemplates.push_back(templatesFor("pianorwc"));
136 InstrumentPack piano(silvet_templates_lowest_note, 132 InstrumentPack piano(silvet_templates_lowest_note,
137 silvet_templates_highest_note, 133 silvet_templates_highest_note,
138 "Piano", 134 "Piano",
139 pianoTemplates); 135 pianoTemplates);
140 // piano.maxPolyphony = 8; 136 piano.maxPolyphony = 6;
141 // piano.levelThreshold = 4;
142 piano.maxPolyphony = 5;
143 piano.levelThreshold = 6; 137 piano.levelThreshold = 6;
144 piano.pitchSparsity = 1.0; 138 piano.pitchSparsity = 1.0;
145 piano.sourceSparsity = 1.0; 139 piano.sourceSparsity = 1.0;
146 if (isOK(piano)) { 140 if (isOK(piano)) {
147 ii.push_back(piano); 141 ii.push_back(piano);
160 allTemplates.push_back(t); 154 allTemplates.push_back(t);
161 InstrumentPack instr(t.lowestNote, 155 InstrumentPack instr(t.lowestNote,
162 t.highestNote, 156 t.highestNote,
163 simpleInstruments[i], 157 simpleInstruments[i],
164 tt); 158 tt);
165 // instr.pitchSparsity = 1.5; 159
166 instr.maxPolyphony = 5; 160 instr.maxPolyphony = 5;
167 instr.levelThreshold = 6; 161 instr.levelThreshold = 6;
162
168 if (isBowedString(i)) { 163 if (isBowedString(i)) {
169 // instr.maxPolyphony = 2; 164 instr.maxPolyphony = 2;
170 // instr.levelThreshold = 3; 165 // instr.levelThreshold = 3;
171 stringTemplates.push_back(t); 166 stringTemplates.push_back(t);
172 } 167 }
173 if (isWind(i)) { 168 if (isWind(i)) {
174 // instr.maxPolyphony = 1; 169 instr.maxPolyphony = 2;
175 // instr.levelThreshold = 5; 170 // instr.levelThreshold = 5;
176 windTemplates.push_back(t); 171 windTemplates.push_back(t);
177 } 172 }
178 if (isOK(instr)) { 173 if (isOK(instr)) {
179 ii.push_back(instr); 174 ii.push_back(instr);