Mercurial > hg > qm-dsp
comparison dsp/tempotracking/TempoTrackV2.cpp @ 105:c32a2446f7fe
Remove debug (which should be to cerr rather than cout, if ever restored)
author | Chris Cannam |
---|---|
date | Mon, 02 Sep 2013 09:47:05 +0100 |
parents | 1e433aaa44ad |
children | 7e52c034cf62 |
comparison
equal
deleted
inserted
replaced
104:1e433aaa44ad | 105:c32a2446f7fe |
---|---|
118 // note: 60*44100/512 is a magic number | 118 // note: 60*44100/512 is a magic number |
119 // this might (will?) break if a user specifies a different frame rate for the onset detection function | 119 // this might (will?) break if a user specifies a different frame rate for the onset detection function |
120 double rayparam = (60*44100/512)/inputtempo; | 120 double rayparam = (60*44100/512)/inputtempo; |
121 | 121 |
122 // these debug statements can be removed. | 122 // these debug statements can be removed. |
123 std::cout << "inputtempo" << inputtempo << std::endl; | 123 // std::cerr << "inputtempo" << inputtempo << std::endl; |
124 std::cout << "rayparam" << rayparam << std::endl; | 124 // std::cerr << "rayparam" << rayparam << std::endl; |
125 std::cout << "constraintempo" << constraintempo << std::endl; | 125 // std::cerr << "constraintempo" << constraintempo << std::endl; |
126 | 126 |
127 // make rayleigh weighting curve | 127 // make rayleigh weighting curve |
128 d_vec_t wv(wv_len); | 128 d_vec_t wv(wv_len); |
129 | 129 |
130 // check whether or not to use rayleigh weighting (if constraintempo is false) | 130 // check whether or not to use rayleigh weighting (if constraintempo is false) |
456 | 456 |
457 //double tightness = 4.; | 457 //double tightness = 4.; |
458 //double alpha = 0.9; | 458 //double alpha = 0.9; |
459 // MEPD 28/11/12 | 459 // MEPD 28/11/12 |
460 // debug statements that can be removed. | 460 // debug statements that can be removed. |
461 std::cout << "alpha" << alpha << std::endl; | 461 // std::cerr << "alpha" << alpha << std::endl; |
462 std::cout << "tightness" << tightness << std::endl; | 462 // std::cerr << "tightness" << tightness << std::endl; |
463 | 463 |
464 // main loop | 464 // main loop |
465 for (unsigned int i=0; i<localscore.size(); i++) | 465 for (unsigned int i=0; i<localscore.size(); i++) |
466 { | 466 { |
467 int prange_min = -2*beat_period[i]; | 467 int prange_min = -2*beat_period[i]; |