Mercurial > hg > multitrack-audio-matcher
comparison src/AudioEventMatcher.h @ 6:746a5af43c02
windowed bayesian distributions - drawn within constrained portion of the screen
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 02 Feb 2012 17:52:08 +0000 |
parents | 45b5cf9be377 |
children | 33dedfe32893 |
comparison
equal
deleted
inserted
replaced
5:5ef00d1dfe68 | 6:746a5af43c02 |
---|---|
26 AudioEventMatcher(); | 26 AudioEventMatcher(); |
27 | 27 |
28 void setArraySizes(); | 28 void setArraySizes(); |
29 | 29 |
30 void draw(); | 30 void draw(); |
31 void drawBayesianDistributions();; | |
31 | 32 |
32 void newPitchEvent(const double& pitchIn, const double& timeIn); | 33 void newPitchEvent(const int& channel, const double& pitchIn, const double& timeIn); |
33 void newKickEvent(const double& timeIn); | 34 void newKickEvent(const double& timeIn); |
35 void newKickEvent(const int& channel, const double& timeIn); | |
34 void newSnareEvent(const double& timeIn); | 36 void newSnareEvent(const double& timeIn); |
35 | 37 |
36 void matchNewPitchEvent(const int& channel, const double& pitchIn, const double& timeIn); | 38 void matchNewPitchEvent(const int& channel, const double& pitchIn, const double& timeIn); |
37 void matchNewOnsetEvent(const int& channel, const double& timeIn); | 39 void matchNewOnsetEvent(const int& channel, const double& timeIn); |
38 | 40 |
48 ofxWindowRegion bayesLikelihoodWindow; | 50 ofxWindowRegion bayesLikelihoodWindow; |
49 | 51 |
50 bool checkMatch(const double& recordedPitch, const double& livePitch); | 52 bool checkMatch(const double& recordedPitch, const double& livePitch); |
51 double getPitchDistance(const double& pitchOne, const double& pitchTwo, const double& scale); | 53 double getPitchDistance(const double& pitchOne, const double& pitchTwo, const double& scale); |
52 | 54 |
53 void updateBayesianDistributions(const double& newEventTime); | |
54 void startPlaying(); | 55 void startPlaying(); |
55 | 56 |
56 bool usingRealTime; | 57 bool usingRealTime; |
57 | 58 |
58 //tmp debug fn | |
59 void printPostOffset(); | |
60 }; | 59 }; |
61 #endif | 60 #endif |