- Timestamp:
- Sep 5, 2015, 12:12:32 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 44e9eeb5, 60fc05b, c59e693
- Parents:
- 0557af9
- Location:
- src/tempo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/beattracking.c
r0557af9 rf45dd12 136 136 uint_t numelem = 4; 137 137 138 smpl_t phase; // beat alignment (step - lastbeat) 139 smpl_t beat; // beat position 138 smpl_t phase; // beat alignment (step - lastbeat) 139 smpl_t beat; // beat position 140 140 smpl_t bp; // beat period 141 141 uint_t a, b; // used to build shift invariant comb filterbank … … 227 227 beat = bp - phase; 228 228 229 // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n", 229 // AUBIO_DBG ("bp: %f, phase: %f, lastbeat: %f, step: %d, winlen: %d\n", 230 230 // bp, phase, bt->lastbeat, step, winlen); 231 231 … … 319 319 } 320 320 321 //now look for step change - i.e. a difference between gp and rp that 321 //now look for step change - i.e. a difference between gp and rp that 322 322 // is greater than 2*constthresh - always true in first case, since gp = 0 323 323 if (counter == 0) { … … 342 342 } 343 343 } else if (counter > 0) { 344 //if counter doesn't = 1, 344 //if counter doesn't = 1, 345 345 counter = counter - 1; 346 346 } -
src/tempo/beattracking.h
r0557af9 rf45dd12 1 1 /* 2 Copyright (C) 2003-201 3Matthew Davies and Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2015 Matthew Davies and Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 35 35 36 36 \example tempo/test-beattracking.c 37 37 38 38 */ 39 39 #ifndef _AUBIO_BEATTRACKING_H … … 50 50 51 51 \param winlen length of the onset detection window 52 \param hop_size number of onset detection samples [512] 52 \param hop_size number of onset detection samples [512] 53 53 \param samplerate samplerate of the input signal 54 54 … … 57 57 uint_t samplerate); 58 58 59 /** track the beat 59 /** track the beat 60 60 61 61 \param bt beat tracking object 62 62 \param dfframes current input detection function frame, smoothed by 63 adaptive median threshold. 64 \param out stored detected beat locations 63 adaptive median threshold. 64 \param out stored detected beat locations 65 65 66 66 */ … … 78 78 smpl_t aubio_beattracking_get_bpm(aubio_beattracking_t * bt); 79 79 80 /** get current tempo confidence 80 /** get current tempo confidence 81 81 82 82 \param bt beat tracking object
Note: See TracChangeset
for help on using the changeset viewer.