Mercurial > hg > multitrack-audio-matcher
comparison src/AudioEventMatcher.h @ 16:680ba08e9925
Auto synchroniser added using the elastique~ object in max
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 06 Feb 2012 12:18:40 +0000 |
parents | 780def3a1f36 |
children | 4ded82fe318d |
comparison
equal
deleted
inserted
replaced
15:780def3a1f36 | 16:680ba08e9925 |
---|---|
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 #include "RecordedMultitrackAudio.h" |
22 #include "DynamicVector.h" | 22 #include "DynamicVector.h" |
23 #include "AccompanimentSynchroniser.h" | |
23 | 24 |
24 class AudioEventMatcher{ | 25 class AudioEventMatcher{ |
25 | 26 |
26 public: | 27 public: |
27 AudioEventMatcher(); | 28 AudioEventMatcher(); |
46 | 47 |
47 BayesianArrayStructure bayesianStruct;//hold the probability distriubtions | 48 BayesianArrayStructure bayesianStruct;//hold the probability distriubtions |
48 | 49 |
49 LiveAudioInput liveInput;//hold the new events that come in | 50 LiveAudioInput liveInput;//hold the new events that come in |
50 RecordedMultitrackAudio recordedTracks; | 51 RecordedMultitrackAudio recordedTracks; |
52 | |
53 void loadAudioFiles(); | |
51 | 54 |
52 void windowResized(const int& w, const int& h); | 55 void windowResized(const int& w, const int& h); |
53 | 56 |
54 ofxWindowRegion bayesTempoWindow; | 57 ofxWindowRegion bayesTempoWindow; |
55 ofxWindowRegion bayesPositionWindow; | 58 ofxWindowRegion bayesPositionWindow; |
79 | 82 |
80 double screenStartTimeMillis, screenEndTimeMillis, screenWidthMillis; | 83 double screenStartTimeMillis, screenEndTimeMillis, screenWidthMillis; |
81 bool followingLiveInput; | 84 bool followingLiveInput; |
82 void setScreenDisplayTimes(); | 85 void setScreenDisplayTimes(); |
83 | 86 |
87 AccompanimentSynchroniser synchroniser; | |
88 | |
84 //params | 89 //params |
85 double onsetLikelihoodWidth; | 90 double onsetLikelihoodWidth; |
86 double onsetLikelihoodToNoise; | 91 double onsetLikelihoodToNoise; |
87 double pitchLikelihoodToNoise;//more noise | 92 double pitchLikelihoodToNoise;//more noise |
88 }; | 93 }; |