comparison tests/TestPhaseVocoder.cpp @ 120:b0e98fcfacd7 pvoc

Comments
author Chris Cannam
date Thu, 03 Oct 2013 13:03:31 +0100
parents 2020c73dc997
children 6ec45e85ed81
comparison
equal deleted inserted replaced
119:2020c73dc997 120:b0e98fcfacd7
144 pvoc.processTimeDomain(data + 8, mag + 1, phase + 1, unw + 1); 144 pvoc.processTimeDomain(data + 8, mag + 1, phase + 1, unw + 1);
145 145
146 double magExpected1[] = { 999, 0, 4, 4, 0, 0, 999 }; 146 double magExpected1[] = { 999, 0, 4, 4, 0, 0, 999 };
147 COMPARE_ARRAY(mag, magExpected1); 147 COMPARE_ARRAY(mag, magExpected1);
148 148
149 //!!! I don't know why [2] here is -M_PI and not M_PI; and I definitely don't know why [4] here is M_PI. Check these with care
150
151 // Derivation of unwrapped values: 149 // Derivation of unwrapped values:
152 // 150 //
153 // * Bin 0 (DC) always has phase 0 and expected phase 0 151 // * Bin 0 (DC) always has phase 0 and expected phase 0
154 // 152 //
155 // * Bin 1 has a new signal, a cosine starting with phase 0. But 153 // * Bin 1 has a new signal, a cosine starting with phase 0. But