andrew@0: /* andrew@0: * AudioEventMatcher.h andrew@0: * MultipleAudioMathcher andrew@0: * andrew@0: * Created by Andrew on 31/01/2012. andrew@0: * Copyright 2012 QMUL. All rights reserved. andrew@0: * andrew@0: */ andrew@0: andrew@0: andrew@0: andrew@0: #ifndef AUDIO_EVENT_MATCHER_H andrew@0: #define AUDIO_EVENT_MATCHER_H andrew@0: andrew@0: andrew@0: #include "ofMain.h" andrew@0: #include "ChromaOnset.h" andrew@0: #include "LiveAudioInput.h" andrew@0: #include "ofxWindowRegion.h" andrew@0: #include "BayesianArrayStructure.h" andrew@1: #include "RecordedMultitrackAudio.h" andrew@0: andrew@0: class AudioEventMatcher{ andrew@0: andrew@0: public: andrew@0: AudioEventMatcher(); andrew@0: andrew@0: void setArraySizes(); andrew@0: andrew@0: void draw(); andrew@0: andrew@1: void newPitchEvent(const double& pitchIn, const double& timeIn); andrew@1: andrew@0: BayesianArrayStructure bayesianStruct;//hold the probability distriubtions andrew@0: andrew@0: LiveAudioInput liveInput;//hold the new events that come in andrew@1: RecordedMultitrackAudio recordedTracks; andrew@1: andrew@1: void windowResized(const int& w, const int& h); andrew@0: andrew@0: ofxWindowRegion bayesTempoWindow; andrew@0: ofxWindowRegion bayesPositionWindow; andrew@0: andrew@0: andrew@0: }; andrew@0: #endif