Mercurial > hg > multitrack-audio-matcher
comparison src/testApp.cpp @ 2:179c09199b3c
bayesian vector now adding gaussians for kick onsets
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 31 Jan 2012 21:34:19 +0000 |
parents | 852173ca8365 |
children | 5e188c0035b6 |
comparison
equal
deleted
inserted
replaced
1:852173ca8365 | 2:179c09199b3c |
---|---|
97 float pitchIn = m.getArgAsFloat(0); | 97 float pitchIn = m.getArgAsFloat(0); |
98 int timeIn = m.getArgAsInt32(1); | 98 int timeIn = m.getArgAsInt32(1); |
99 printf("AUBIO PITCH RECEIVED %f at time %i\n", pitchIn, timeIn); | 99 printf("AUBIO PITCH RECEIVED %f at time %i\n", pitchIn, timeIn); |
100 eventMatcher.newPitchEvent(pitchIn, timeIn); | 100 eventMatcher.newPitchEvent(pitchIn, timeIn); |
101 } | 101 } |
102 | |
103 if ( m.getAddress() == "/kick" ){ | |
104 // float pitchIn = m.getArgAsFloat(0); | |
105 double timeIn = m.getArgAsInt32(0); | |
106 printf("kick RECEIVED at time %f\n", timeIn); | |
107 eventMatcher.newKickEvent(timeIn); | |
108 } | |
109 | |
110 if ( m.getAddress() == "/snare" ){ | |
111 // float pitchIn = m.getArgAsFloat(0); | |
112 double timeIn = m.getArgAsInt32(0); | |
113 printf("snare RECEIVED at time %f\n", timeIn); | |
114 eventMatcher.newSnareEvent(timeIn); | |
115 } | |
102 } | 116 } |
103 } | 117 } |
104 | 118 |
105 //-------------------------------------------------------------- | 119 //-------------------------------------------------------------- |
106 void testApp::draw(){ | 120 void testApp::draw(){ |