Mercurial > hg > qm-dsp
changeset 510:2adcd94c2079
Update test
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Thu, 06 Jun 2019 14:26:46 +0100 |
parents | 3f0a96460c33 |
children | 15cce5df8366 a6bf4d97815e |
files | tests/TestGetKeyMode.cpp |
diffstat | 1 files changed, 3 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/TestGetKeyMode.cpp Thu Jun 06 14:20:53 2019 +0100 +++ b/tests/TestGetKeyMode.cpp Thu Jun 06 14:26:46 2019 +0100 @@ -70,16 +70,13 @@ for (int midiPitch = 48; midiPitch < 96; ++midiPitch) { - GetKeyMode gkm(sampleRate, concertA, 10, 10); + GetKeyMode::Config config(sampleRate, concertA); + GetKeyMode gkm(config); int blockSize = gkm.getBlockSize(); int hopSize = gkm.getHopSize(); double frequency = concertA * pow(2.0, (midiPitch - 69.0) / 12.0); -/* - cout << "midiPitch = " << midiPitch - << ", name = " << midiPitchName(midiPitch) - << ", frequency = " << frequency << endl; -*/ + int blocks = 4; int totalLength = blockSize * blocks; vector<double> signal = generateSinusoid(frequency, sampleRate, @@ -103,9 +100,6 @@ if (minor) tonic -= 12; BOOST_CHECK_EQUAL(tonic, 1 + (midiPitch % 12)); - -// string name = keyName(tonic, minor); -// cout << "key value = " << key << ", name = " << name << endl; } }