Mercurial > hg > multitrack-audio-matcher
comparison src/AudioEventMatcher.h @ 1:852173ca8365
Added class to hold recorded mulitracks
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 31 Jan 2012 17:35:30 +0000 |
parents | c4f9e49226eb |
children | 179c09199b3c |
comparison
equal
deleted
inserted
replaced
0:c4f9e49226eb | 1:852173ca8365 |
---|---|
16 #include "ofMain.h" | 16 #include "ofMain.h" |
17 #include "ChromaOnset.h" | 17 #include "ChromaOnset.h" |
18 #include "LiveAudioInput.h" | 18 #include "LiveAudioInput.h" |
19 #include "ofxWindowRegion.h" | 19 #include "ofxWindowRegion.h" |
20 #include "BayesianArrayStructure.h" | 20 #include "BayesianArrayStructure.h" |
21 #include "RecordedMultitrackAudio.h" | |
21 | 22 |
22 class AudioEventMatcher{ | 23 class AudioEventMatcher{ |
23 | 24 |
24 public: | 25 public: |
25 AudioEventMatcher(); | 26 AudioEventMatcher(); |
26 | 27 |
27 void setArraySizes(); | 28 void setArraySizes(); |
28 | 29 |
29 void draw(); | 30 void draw(); |
30 | 31 |
32 void newPitchEvent(const double& pitchIn, const double& timeIn); | |
33 | |
31 BayesianArrayStructure bayesianStruct;//hold the probability distriubtions | 34 BayesianArrayStructure bayesianStruct;//hold the probability distriubtions |
32 | 35 |
33 LiveAudioInput liveInput;//hold the new events that come in | 36 LiveAudioInput liveInput;//hold the new events that come in |
37 RecordedMultitrackAudio recordedTracks; | |
38 | |
39 void windowResized(const int& w, const int& h); | |
34 | 40 |
35 ofxWindowRegion bayesTempoWindow; | 41 ofxWindowRegion bayesTempoWindow; |
36 ofxWindowRegion bayesPositionWindow; | 42 ofxWindowRegion bayesPositionWindow; |
37 | 43 |
38 | 44 |