Mercurial > hg > multitrack-audio-matcher
comparison src/RecordedMultitrackAudio.cpp @ 39:f5de07b4d733
helped the tempo prior to have wider shape
| author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
|---|---|
| date | Tue, 24 Apr 2012 23:57:10 +0100 |
| parents | 9c803369b229 |
| children | f3ac00083d5f |
comparison
equal
deleted
inserted
replaced
| 38:9c803369b229 | 39:f5de07b4d733 |
|---|---|
| 14 | 14 |
| 15 trackScreenHeight = 0.15; | 15 trackScreenHeight = 0.15; |
| 16 | 16 |
| 17 printf("loaded max val is %f\n", loadedAudioFiles[0].fileLoader.onsetDetect.onsetDetector.maximumDetectionValue); | 17 printf("loaded max val is %f\n", loadedAudioFiles[0].fileLoader.onsetDetect.onsetDetector.maximumDetectionValue); |
| 18 | 18 |
| 19 int multitrackToLoad = 13; | 19 int multitrackToLoad = 16; |
| 20 setDifferentMultitracks(multitrackToLoad);//command to load this set of audio files - see below | 20 setDifferentMultitracks(multitrackToLoad);//command to load this set of audio files - see below |
| 21 | 21 |
| 22 //number 7 is problematic with memory | 22 //number 7 is problematic with memory |
| 23 | 23 |
| 24 printf("AFTER LOADING: \n"); | 24 printf("AFTER LOADING: \n"); |
| 57 bassfilename = "../../../data/sound/UistLive1/01bass_bip.wav"; | 57 bassfilename = "../../../data/sound/UistLive1/01bass_bip.wav"; |
| 58 snarefilename = "../../../data/sound/UistLive1/03snare_bip.wav"; | 58 snarefilename = "../../../data/sound/UistLive1/03snare_bip.wav"; |
| 59 break; | 59 break; |
| 60 | 60 |
| 61 case 4: | 61 case 4: |
| 62 kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/kick d112_bip.wav"; | 62 kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/02kick_bip.wav"; |
| 63 bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/bass di_bip.wav"; | 63 bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/01bass_bip.wav"; |
| 64 snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/snare_bip.wav"; | 64 snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/03snare_bip.wav"; |
| 65 guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeTwo/04guitar di_bip.wav"; | |
| 65 break; | 66 break; |
| 66 case 5: | 67 case 5: |
| 67 kickfilename = "/Users/andrew/Documents/work/Alignment/MultitrackMatch/tractorsAlign/Take12/02kick_bip.wav"; | 68 kickfilename = "/Users/andrew/Documents/work/Alignment/MultitrackMatch/tractorsAlign/Take12/02kick_bip.wav"; |
| 68 bassfilename = "/Users/andrew/Documents/work/Alignment/MultitrackMatch/tractorsAlign/Take12/01bass_bip.wav"; | 69 bassfilename = "/Users/andrew/Documents/work/Alignment/MultitrackMatch/tractorsAlign/Take12/01bass_bip.wav"; |
| 69 snarefilename = "/Users/andrew/Documents/work/Alignment/MultitrackMatch/tractorsAlign/Take12/03snare_bip.wav"; | 70 snarefilename = "/Users/andrew/Documents/work/Alignment/MultitrackMatch/tractorsAlign/Take12/03snare_bip.wav"; |
| 137 snarefilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/03Snare_bip.wav"; | 138 snarefilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/03Snare_bip.wav"; |
| 138 guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/04Elec_SM57_bip.wav"; | 139 guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/04Elec_SM57_bip.wav"; |
| 139 break; | 140 break; |
| 140 | 141 |
| 141 case 16: | 142 case 16: |
| 142 // std::string folder = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/"; | |
| 143 kickfilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/02Kick_D112_bip.wav"; | 143 kickfilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/02Kick_D112_bip.wav"; |
| 144 bassfilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/01Bass.wav"; | 144 // bassfilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/01Bass.wav"; |
| 145 snarefilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D//03Snare_Top_bip.wav"; | 145 snarefilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/03Snare_Top_bip.wav"; |
| 146 // guitarfilename ="/Volumes/Supersaurus/Gronk/Gronkn/Bounces/StationGateMultitracks/TakeTwoShorter/04Elec_SM57_bip.wav"; | 146 guitarfilename = "/Volumes/Supersaurus/SonOfMan/FollowYourLeaders/FollowYourLeaders/Bounces/FollowMultitracks/Follow_023_D/04Elec_SM57_bip.wav"; |
| 147 break; | 147 |
| 148 | 148 break; |
| 149 | 149 |
| 150 | 150 case 17: |
| 151 | 151 kickfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeThree/02kick_bip.wav"; |
| 152 | 152 bassfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeThree/01bass_bip.wav"; |
| 153 | 153 snarefilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeThree/03snare_bip.wav"; |
| 154 } | 154 guitarfilename = "/Volumes/Supersaurus/TractorsAlbum/tractorsIdiotDance/tractorsSetToRecord2/Bounces/TakeThree/04guitar di_bip.wav"; |
| 155 break; | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 } | |
| 162 if (kickfilename != NULL) | |
| 155 loadAudioTrack(kickfilename, 0); | 163 loadAudioTrack(kickfilename, 0); |
| 156 loadAudioTrack(bassfilename, 1); | 164 |
| 165 if (bassfilename != NULL){ | |
| 166 printf("BASSfilename: %s\n", bassfilename); | |
| 167 loadAudioTrack(bassfilename, 1); | |
| 168 } | |
| 169 | |
| 170 if (snarefilename != NULL) | |
| 157 loadAudioTrack(snarefilename, 2); | 171 loadAudioTrack(snarefilename, 2); |
| 158 | 172 |
| 159 if (guitarfilename != NULL) | 173 if (guitarfilename != NULL) |
| 160 loadAudioTrack(guitarfilename, 3); | 174 loadAudioTrack(guitarfilename, 3); |
| 161 | 175 |
