Mercurial > hg > multitrack-audio-matcher
comparison src/testApp.cpp @ 42:6a7982661703
checked pitch tracking and added reset to onset detection
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Apr 2012 23:25:10 +0100 |
parents | 0d66ecd1f4d3 |
children | d23685b9e766 |
comparison
equal
deleted
inserted
replaced
41:f3ac00083d5f | 42:6a7982661703 |
---|---|
90 for (int i = 0;i < 12;i++){ | 90 for (int i = 0;i < 12;i++){ |
91 chromaIn[i] = m.getArgAsFloat(i+2); | 91 chromaIn[i] = m.getArgAsFloat(i+2); |
92 // printf("chroma[%i]: %f\n", i, chromaIn[i]); | 92 // printf("chroma[%i]: %f\n", i, chromaIn[i]); |
93 } | 93 } |
94 eventMatcher.newChromaEvent(testChannel, chromaIn, timeIn); | 94 eventMatcher.newChromaEvent(testChannel, chromaIn, timeIn); |
95 } | |
96 | |
97 | |
98 if (m.getAddress() == "/startWindow"){ | |
99 eventMatcher.bayesianStruct.startingWindowWidth = m.getArgAsFloat(0); | |
95 } | 100 } |
96 | 101 |
97 | 102 |
98 if ( m.getAddress() == "/start" ){ | 103 if ( m.getAddress() == "/start" ){ |
99 printf("start!\n"); | 104 printf("start!\n"); |