Mercurial > hg > multitrack-audio-matcher
diff src/testApp.cpp @ 32:4be22a1a0e24
added in chroma comparison for fourth channel (guitar)
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 02 Apr 2012 17:19:22 +0100 |
parents | 02f659277346 |
children | 6fb77b20413c |
line wrap: on
line diff
--- a/src/testApp.cpp Sun Apr 01 01:33:23 2012 +0100 +++ b/src/testApp.cpp Mon Apr 02 17:19:22 2012 +0100 @@ -80,12 +80,15 @@ // check for mouse moved message if ( m.getAddress() == "/elec" ){ - float chroma[12]; + int testChannel = m.getArgAsInt32(0); + double timeIn = m.getArgAsFloat(1); + float chromaIn[12]; + printf("CHROMA received at time %f\n", timeIn); for (int i = 0;i < 12;i++){ - chroma[i] = m.getArgAsFloat(i); - printf("chroma[%i]: %f\n", i, chroma[i]); + chromaIn[i] = m.getArgAsFloat(i+2); + printf("chroma[%i]: %f\n", i, chromaIn[i]); } -// eventMatcher.newChromaEvent(testChannel, pitchIn, timeIn); - WRite this! + eventMatcher.newChromaEvent(testChannel, chromaIn, timeIn); }