Mercurial > hg > multitrack-audio-matcher
comparison src/testApp.cpp @ 16:680ba08e9925
Auto synchroniser added using the elastique~ object in max
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 06 Feb 2012 12:18:40 +0000 |
parents | 780def3a1f36 |
children | 4f6006cac9de |
comparison
equal
deleted
inserted
replaced
15:780def3a1f36 | 16:680ba08e9925 |
---|---|
26 ofSoundStreamSetup(2,0,this, sampleRate,256, 4); | 26 ofSoundStreamSetup(2,0,this, sampleRate,256, 4); |
27 | 27 |
28 ofSetFrameRate(30); | 28 ofSetFrameRate(30); |
29 | 29 |
30 | 30 |
31 | 31 eventMatcher.loadAudioFiles(); |
32 eventMatcher.recordedTracks.loadTestAudio(); | |
33 | 32 |
34 eventMatcher.setWindowDimensions(); | 33 eventMatcher.setWindowDimensions(); |
35 //audioFilePlayer.loadAudioFile(infilename); | 34 //audioFilePlayer.loadAudioFile(infilename); |
36 } | 35 } |
37 | 36 |
88 } | 87 } |
89 | 88 |
90 if ( m.getAddress() == "/stop" ){ | 89 if ( m.getAddress() == "/stop" ){ |
91 printf("stop!\n"); | 90 printf("stop!\n"); |
92 eventMatcher.stopPlaying(); | 91 eventMatcher.stopPlaying(); |
92 } | |
93 | |
94 if ( m.getAddress() == "/accompanimentRatio" ){ | |
95 double time = m.getArgAsFloat(0); | |
96 double ratio = m.getArgAsFloat(1); | |
97 eventMatcher.synchroniser.setPlayingRatio(ratio, time); | |
93 } | 98 } |
94 | 99 |
95 } | 100 } |
96 } | 101 } |
97 | 102 |