Mercurial > hg > qm-vamp-plugins
comparison plugins/KeyDetect.cpp @ 245:a3612b821a0b
Fix bin names
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 13 Aug 2019 14:36:31 +0100 |
parents | ed249a345715 |
children | e6abd6e99051 |
comparison
equal
deleted
inserted
replaced
244:ed249a345715 | 245:a3612b821a0b |
---|---|
285 d.hasFixedBinCount = true; | 285 d.hasFixedBinCount = true; |
286 d.binCount = 25; | 286 d.binCount = 25; |
287 d.hasKnownExtents = false; | 287 d.hasKnownExtents = false; |
288 d.isQuantized = false; | 288 d.isQuantized = false; |
289 d.sampleType = OutputDescriptor::OneSamplePerStep; | 289 d.sampleType = OutputDescriptor::OneSamplePerStep; |
290 d.binNames.clear(); | |
290 for (int i = 0; i < 24; ++i) { | 291 for (int i = 0; i < 24; ++i) { |
291 if (i == 12) d.binNames.push_back(" "); | 292 if (i == 12) d.binNames.push_back(" "); |
292 int idx = conversion[i]; | 293 int idx = conversion[i]; |
293 std::string label = getKeyName(idx > 12 ? idx-12 : idx, | 294 std::string label = getKeyName(idx > 12 ? idx-12 : idx, |
294 i >= 12, | 295 i >= 12, |
304 d.hasFixedBinCount = true; | 305 d.hasFixedBinCount = true; |
305 d.binCount = 12; | 306 d.binCount = 12; |
306 d.hasKnownExtents = false; | 307 d.hasKnownExtents = false; |
307 d.isQuantized = false; | 308 d.isQuantized = false; |
308 d.sampleType = OutputDescriptor::OneSamplePerStep; | 309 d.sampleType = OutputDescriptor::OneSamplePerStep; |
310 d.binNames.clear(); | |
309 for (int i = 0; i < 12; ++i) { | 311 for (int i = 0; i < 12; ++i) { |
310 int idx = conversion[i]; | 312 int idx = conversion[i]; |
311 std::string label = getKeyName(idx > 12 ? idx-12 : idx, | 313 std::string label = getKeyName(idx > 12 ? idx-12 : idx, |
312 i >= 12, | 314 i >= 12, |
313 false); | 315 false); |