Mercurial > hg > drum-timing-analyser
view DrumTimingLoader_OF/src/DrumTimingLoader.cpp @ 0:82352cfc0b23
Added files from ISMIR groove drum timing work
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 01 Oct 2012 22:24:32 +0100 |
parents | |
children | 50ba55abea8c |
line wrap: on
line source
/* * DrumTimingLoader.cpp * DrumTimingLoader * * Created by Andrew on 09/08/2012. * Copyright 2012 QMUL. All rights reserved. * */ #include "DrumTimingLoader.h" DrumTimingLoader::DrumTimingLoader(){ } void DrumTimingLoader::initialise(){ recordedTracks.loadTestAudio(); /* calculateRecordedTempoData(); printf("\n audioeventmatcher\nFIRST PASS: FINAL recorded tempo is %f\n", recordedTempoData.playingTempo); setTempoPrior(recordedTempoData.playingTempo); calculateRecordedTempoData();//now calculate again using better prior printf("\n audioeventmatcher\nSECOND PASS: FINAL recorded tempo is %f\n", recordedTempoData.playingTempo); printf("GLOBAL TEMPO of RECORDED FILES\n"); */ } void DrumTimingLoader::draw(){ bool drawTracks = false; if (drawTracks) recordedTracks.drawTracks(); else recordedTracks.drumTimingAnalyser.drawTempoCurve(); } void DrumTimingLoader::windowResized(int w, int h){ recordedTracks.windowResized(w, h); }