Mercurial > hg > multitrack-audio-matcher
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c4f9e49226eb |
---|---|
1 /* | |
2 * AudioEventMatcher.cpp | |
3 * MultipleAudioMathcher | |
4 * | |
5 * Created by Andrew on 31/01/2012. | |
6 * Copyright 2012 QMUL. All rights reserved. | |
7 * | |
8 */ | |
9 | |
10 #include "AudioEventMatcher.h" | |
11 | |
12 | |
13 const int matchWindowWidth = 1200; | |
14 | |
15 AudioEventMatcher::AudioEventMatcher(){ | |
16 | |
17 bayesTempoWindow.setToRelativeSize(0, 0.6, 1, 0.2); | |
18 bayesPositionWindow.setToRelativeSize(0, 0.8, 1, 0.2); | |
19 | |
20 setArraySizes(); | |
21 } | |
22 | |
23 | |
24 void AudioEventMatcher::setArraySizes(){ | |
25 bayesianStruct.resetSpeedSize(200); | |
26 bayesianStruct.setRelativeSpeedScalar(0.01); | |
27 bayesianStruct.setSpeedPrior(1.0); | |
28 bayesianStruct.relativeSpeedPrior.getMaximum(); | |
29 | |
30 bayesianStruct.resetSize(matchWindowWidth); | |
31 bayesianStruct.setPositionDistributionScalar(1); | |
32 | |
33 } | |
34 | |
35 void AudioEventMatcher::draw(){ | |
36 //ofRect(20, 20, 300, 200); | |
37 | |
38 bayesianStruct.relativeSpeedPrior.drawVector(0, 200, bayesTempoWindow); | |
39 | |
40 } |