Mercurial > hg > match-vamp
comparison test/TestFeatureExtractor.cpp @ 128:3f32a88ee15a refactors
Comment
author | Chris Cannam |
---|---|
date | Thu, 11 Dec 2014 12:13:26 +0000 |
parents | 2ed42b7616c5 |
children | dad9fdc32a6a |
comparison
equal
deleted
inserted
replaced
127:2ed42b7616c5 | 128:3f32a88ee15a |
---|---|
70 // | 70 // |
71 // * one bin of value 250 (= 10^2 + 5^2), if the two input | 71 // * one bin of value 250 (= 10^2 + 5^2), if the two input |
72 // bins are distinct but their output chroma are not | 72 // bins are distinct but their output chroma are not |
73 // | 73 // |
74 // * one bin of value 450 (= 15^2 + 15^2), if the input bins | 74 // * one bin of value 450 (= 15^2 + 15^2), if the input bins |
75 // are not distinct | 75 // are not distinct (the feature extractor sums energies |
76 // rather than magnitudes so as to integrate energy for a | |
77 // partial in the face of spectral leakage) | |
76 // | 78 // |
77 // The bin corresponding to each input frequency is that of | 79 // The bin corresponding to each input frequency is that of |
78 // its semitone value (with C=0), except that input bin | 80 // its semitone value (with C=0), except that input bin |
79 // frequencies less than 362Hz are shepherded into the | 81 // frequencies less than 362Hz are shepherded into the |
80 // separate bin 0 (see docs in FeatureExtractor.h) | 82 // separate bin 0 (see docs in FeatureExtractor.h) |
138 // | 140 // |
139 // * one bin of value 250 (= 10^2 + 5^2), if the two input | 141 // * one bin of value 250 (= 10^2 + 5^2), if the two input |
140 // bins are distinct but their output bins are not | 142 // bins are distinct but their output bins are not |
141 // | 143 // |
142 // * one bin of value 450 (= 15^2 + 15^2), if the input bins | 144 // * one bin of value 450 (= 15^2 + 15^2), if the input bins |
143 // are not distinct | 145 // are not distinct (the feature extractor sums energies |
146 // rather than magnitudes so as to integrate energy for a | |
147 // partial in the face of spectral leakage) | |
144 // | 148 // |
145 // The first 34 input bins (i.e. up to and including bin 33, | 149 // The first 34 input bins (i.e. up to and including bin 33, |
146 // 733Hz, MIDI pitch 77.something) are mapped linearly, those | 150 // 733Hz, MIDI pitch 77.something) are mapped linearly, those |
147 // above that and up to MIDI pitch 127 (12544Hz) are mapped | 151 // above that and up to MIDI pitch 127 (12544Hz) are mapped |
148 // logarithmically, remaining bins are all mapped into the | 152 // logarithmically, remaining bins are all mapped into the |