Mercurial > hg > multitrack-audio-matcher
view src/RecordedMultitrackAudio.h @ 8:572564b7cb85
added calculation posterior into both onset and pitch processes
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 03 Feb 2012 13:28:59 +0000 |
parents | 33dedfe32893 |
children | bc62266af280 |
line wrap: on
line source
/* * RecordedMultitrackAudio.h * MultipleAudioMathcher * * Created by Andrew on 31/01/2012. * Copyright 2012 QMUL. All rights reserved. * */ #ifndef RECORDED_MULTITRACK_AUDIO_H #define RECORDED_MULTITRACK_AUDIO_H #include "ofMain.h" #include "ChromaOnset.h" #include "LoadedAudioHolder.h" /* struct AudioEvent { double millisTime; double frameTime; double pitch; int type; }; */ class RecordedMultitrackAudio{ public: void loadTestAudio(); void updatePosition(); void drawTracks(); void switchScreens(); void togglePlay(); void stop(); void printInfo(); void windowResized(const int& w, const int& h); void zoomIn(); void zoomOut(); // void matchNewPitchEvent(const int& channel, const double& pitchIn, const double& timeIn); // bool checkMatch(const double& recordedPitch, const double& livePitch); //variables int numberOfAudioTracks; LoadedAudioHolder* loadedAudioPtr; LoadedAudioHolder loadedAudioFiles[5]; double trackScreenHeight; }; #endif