comparison dsp/tempotracking/TempoTrackV2.cpp @ 102:37449f085a4c

Fix compiler warnings
author Chris Cannam
date Thu, 13 Jun 2013 10:23:09 +0100
parents e5907ae6de17
children 1e433aaa44ad
comparison
equal deleted inserted replaced
101:452615c4bab4 102:37449f085a4c
460 } 460 }
461 461
462 int startpoint = get_max_ind(tmp_vec) + cumscore.size() - beat_period[beat_period.size()-1] ; 462 int startpoint = get_max_ind(tmp_vec) + cumscore.size() - beat_period[beat_period.size()-1] ;
463 463
464 // can happen if no results obtained earlier (e.g. input too short) 464 // can happen if no results obtained earlier (e.g. input too short)
465 if (startpoint >= backlink.size()) startpoint = backlink.size()-1; 465 if (startpoint >= (int)backlink.size()) startpoint = backlink.size()-1;
466 466
467 // USE BACKLINK TO GET EACH NEW BEAT (TOWARDS THE BEGINNING OF THE FILE) 467 // USE BACKLINK TO GET EACH NEW BEAT (TOWARDS THE BEGINNING OF THE FILE)
468 // BACKTRACKING FROM THE END TO THE BEGINNING.. MAKING SURE NOT TO GO BEFORE SAMPLE 0 468 // BACKTRACKING FROM THE END TO THE BEGINNING.. MAKING SURE NOT TO GO BEFORE SAMPLE 0
469 i_vec_t ibeats; 469 i_vec_t ibeats;
470 ibeats.push_back(startpoint); 470 ibeats.push_back(startpoint);