Mercurial > hg > silvet
comparison src/Instruments.cpp @ 202:f6cdb050614b noteagent
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 04 Jun 2014 12:11:25 +0100 |
parents | 4840c6306b4f |
children | ce8118644f16 5bde003a43a9 |
comparison
equal
deleted
inserted
replaced
199:5326c5396aa2 | 202:f6cdb050614b |
---|---|
129 pianoTemplates.push_back(templatesFor("piano3")); | 129 pianoTemplates.push_back(templatesFor("piano3")); |
130 InstrumentPack piano(silvet_templates_lowest_note, | 130 InstrumentPack piano(silvet_templates_lowest_note, |
131 silvet_templates_highest_note, | 131 silvet_templates_highest_note, |
132 "Piano", | 132 "Piano", |
133 pianoTemplates); | 133 pianoTemplates); |
134 piano.maxPolyphony = 8; | 134 // piano.maxPolyphony = 8; |
135 piano.levelThreshold = 3; | 135 // piano.levelThreshold = 3; |
136 piano.maxPolyphony = 5; | |
137 piano.levelThreshold = 6; | |
136 if (isOK(piano)) { | 138 if (isOK(piano)) { |
137 ii.push_back(piano); | 139 ii.push_back(piano); |
138 } | 140 } |
139 | 141 |
140 vector<Templates> stringTemplates; | 142 vector<Templates> stringTemplates; |
149 allTemplates.push_back(t); | 151 allTemplates.push_back(t); |
150 InstrumentPack instr(t.lowestNote, | 152 InstrumentPack instr(t.lowestNote, |
151 t.highestNote, | 153 t.highestNote, |
152 simpleInstruments[i], | 154 simpleInstruments[i], |
153 tt); | 155 tt); |
154 instr.pitchSparsity = 1.5; | 156 // instr.pitchSparsity = 1.5; |
157 instr.maxPolyphony = 5; | |
158 instr.levelThreshold = 6; | |
155 if (isString(i)) { | 159 if (isString(i)) { |
156 instr.maxPolyphony = 2; | 160 // instr.maxPolyphony = 2; |
157 instr.levelThreshold = 3; | 161 // instr.levelThreshold = 3; |
158 stringTemplates.push_back(t); | 162 stringTemplates.push_back(t); |
159 } | 163 } |
160 if (isWind(i)) { | 164 if (isWind(i)) { |
161 instr.maxPolyphony = 1; | 165 // instr.maxPolyphony = 1; |
162 instr.levelThreshold = 5; | 166 // instr.levelThreshold = 5; |
163 windTemplates.push_back(t); | 167 windTemplates.push_back(t); |
164 } | 168 } |
165 if (isOK(instr)) { | 169 if (isOK(instr)) { |
166 ii.push_back(instr); | 170 ii.push_back(instr); |
167 } | 171 } |