andrew@0: /* andrew@0: * DrumTimingLoader.cpp andrew@0: * DrumTimingLoader andrew@0: * andrew@0: * Created by Andrew on 09/08/2012. andrew@0: * Copyright 2012 QMUL. All rights reserved. andrew@0: * andrew@0: */ andrew@0: andrew@0: #include "DrumTimingLoader.h" andrew@0: andrew@0: DrumTimingLoader::DrumTimingLoader(){ andrew@0: andrew@0: } andrew@0: andrew@0: andrew@0: void DrumTimingLoader::initialise(){ andrew@0: andrew@0: recordedTracks.loadTestAudio(); andrew@0: /* andrew@0: calculateRecordedTempoData(); andrew@0: printf("\n audioeventmatcher\nFIRST PASS: FINAL recorded tempo is %f\n", recordedTempoData.playingTempo); andrew@0: setTempoPrior(recordedTempoData.playingTempo); andrew@0: calculateRecordedTempoData();//now calculate again using better prior andrew@0: andrew@0: printf("\n audioeventmatcher\nSECOND PASS: FINAL recorded tempo is %f\n", recordedTempoData.playingTempo); andrew@0: printf("GLOBAL TEMPO of RECORDED FILES\n"); andrew@0: */ andrew@0: andrew@0: } andrew@0: andrew@0: andrew@0: andrew@0: void DrumTimingLoader::draw(){ andrew@0: bool drawTracks = false; andrew@0: if (drawTracks) andrew@0: recordedTracks.drawTracks(); andrew@0: else andrew@0: recordedTracks.drumTimingAnalyser.drawTempoCurve(); andrew@0: } andrew@0: andrew@0: void DrumTimingLoader::windowResized(int w, int h){ andrew@0: recordedTracks.windowResized(w, h); andrew@0: }