comparison chromamethods.cpp @ 41:d6bb9b43ac1c matthiasm-plugin

README and new parameters, not tested yet
author Matthias Mauch <mail@matthiasmauch.net>
date Fri, 22 Oct 2010 21:43:57 +0900
parents cf8898a0174c
children 109d3b2c7105
comparison
equal deleted inserted replaced
40:61d35e59ee2b 41:d6bb9b43ac1c
168 } 168 }
169 } 169 }
170 return true; 170 return true;
171 } 171 }
172 172
173 void dictionaryMatrix(float* dm) { 173 void dictionaryMatrix(float* dm, float s_param) {
174 int binspersemitone = 3; // this must be 3 174 int binspersemitone = 3; // this must be 3
175 int minoctave = 0; // this must be 0 175 int minoctave = 0; // this must be 0
176 int maxoctave = 7; // this must be 7 176 int maxoctave = 7; // this must be 7
177 float s_param = 0.7; 177 // float s_param = 0.7;
178 178
179 // pitch-spaced frequency vector 179 // pitch-spaced frequency vector
180 int minMIDI = 21 + minoctave * 12 - 1; // this includes one additional semitone! 180 int minMIDI = 21 + minoctave * 12 - 1; // this includes one additional semitone!
181 int maxMIDI = 21 + maxoctave * 12; // this includes one additional semitone! 181 int maxMIDI = 21 + maxoctave * 12; // this includes one additional semitone!
182 vector<float> cq_f; 182 vector<float> cq_f;