Mercurial > hg > multitrack-audio-matcher
diff src/AudioEventMatcher.cpp @ 0:c4f9e49226eb
Initialising repository. Live osc input registered. Files analysed offline.
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 31 Jan 2012 13:54:17 +0000 |
parents | |
children | 852173ca8365 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/AudioEventMatcher.cpp Tue Jan 31 13:54:17 2012 +0000 @@ -0,0 +1,40 @@ +/* + * AudioEventMatcher.cpp + * MultipleAudioMathcher + * + * Created by Andrew on 31/01/2012. + * Copyright 2012 QMUL. All rights reserved. + * + */ + +#include "AudioEventMatcher.h" + + +const int matchWindowWidth = 1200; + +AudioEventMatcher::AudioEventMatcher(){ + + bayesTempoWindow.setToRelativeSize(0, 0.6, 1, 0.2); + bayesPositionWindow.setToRelativeSize(0, 0.8, 1, 0.2); + + setArraySizes(); +} + + +void AudioEventMatcher::setArraySizes(){ + bayesianStruct.resetSpeedSize(200); + bayesianStruct.setRelativeSpeedScalar(0.01); + bayesianStruct.setSpeedPrior(1.0); + bayesianStruct.relativeSpeedPrior.getMaximum(); + + bayesianStruct.resetSize(matchWindowWidth); + bayesianStruct.setPositionDistributionScalar(1); + +} + +void AudioEventMatcher::draw(){ + //ofRect(20, 20, 300, 200); + + bayesianStruct.relativeSpeedPrior.drawVector(0, 200, bayesTempoWindow); + +} \ No newline at end of file