Mercurial > hg > multitrack-audio-matcher
comparison src/RecordedMultitrackAudio.cpp @ 55:2eca10a31ae2
improving printing of information, looking at how tempo is modelled
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 10 Dec 2012 17:07:21 +0000 |
parents | 5274e3b5479d |
children | 4394c9490716 |
comparison
equal
deleted
inserted
replaced
54:fe1aab366571 | 55:2eca10a31ae2 |
---|---|
7 * | 7 * |
8 */ | 8 */ |
9 | 9 |
10 #include "RecordedMultitrackAudio.h" | 10 #include "RecordedMultitrackAudio.h" |
11 | 11 |
12 static bool printOnsetInfo = false; | |
12 | 13 |
13 void RecordedMultitrackAudio::loadTestAudio(){ | 14 void RecordedMultitrackAudio::loadTestAudio(){ |
14 | 15 |
15 trackScreenHeight = 0.15; | 16 trackScreenHeight = 0.15; |
16 | 17 |
17 numberOfAudioTracks = 4; | 18 numberOfAudioTracks = 4; |
18 | 19 |
19 printf("loaded max val is %f\n", loadedAudioFiles[0].fileLoader.onsetDetect.onsetDetector.maximumDetectionValue); | 20 |
20 | |
21 int multitrackToLoad = 27; | 21 int multitrackToLoad = 27; |
22 setDifferentMultitracks(multitrackToLoad);//command to load this set of audio files - see below | 22 setDifferentMultitracks(multitrackToLoad);//command to load this set of audio files - see below |
23 | 23 |
24 //number 7 is problematic with memory | 24 //number 7 is problematic with memory |
25 | 25 |
26 printf("AFTER LOADING: \n"); | 26 if (printOnsetInfo){ |
27 printInfo(); | 27 printf("loaded max val is %f\n", loadedAudioFiles[0].fileLoader.onsetDetect.onsetDetector.maximumDetectionValue); |
28 printf("AFTER LOADING: \n"); | |
29 printInfo(); | |
30 } | |
28 | 31 |
29 | 32 |
30 | 33 |
31 | 34 |
32 } | 35 } |