- Timestamp:
- Oct 16, 2009, 9:55:02 PM (15 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:
- e4f142c
- Parents:
- 68b8233
- Location:
- src/tempo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/tempo.c
r68b8233 rd25bd12 43 43 uint_t winlen; /** dfframe bufsize */ 44 44 uint_t step; /** dfframe hopsize */ 45 uint_t samplerate; /** sampling rate of the signal */ 45 46 }; 46 47 … … 100 101 /* Allocate memory for an tempo detection */ 101 102 aubio_tempo_t * new_aubio_tempo (char_t * onset_mode, 102 uint_t buf_size, uint_t hop_size, uint_t channels )103 uint_t buf_size, uint_t hop_size, uint_t channels, uint_t samplerate) 103 104 { 104 105 aubio_tempo_t * o = AUBIO_NEW(aubio_tempo_t); 106 o->samplerate = samplerate; 105 107 o->winlen = SQR(512)/hop_size; 106 108 o->step = o->winlen/4; 107 109 o->blockpos = 0; 108 110 o->threshold = 0.3; 109 o->silence = -90 ;111 o->silence = -90.; 110 112 o->blockpos = 0; 111 113 o->dfframe = new_fvec(o->winlen,channels); -
src/tempo/tempo.h
r68b8233 rd25bd12 39 39 /** create tempo detection object */ 40 40 aubio_tempo_t * new_aubio_tempo (char_t * mode, 41 uint_t buf_size, uint_t hop_size, uint_t channels );41 uint_t buf_size, uint_t hop_size, uint_t channels, uint_t samplerate); 42 42 43 43 /** execute tempo detection */
Note: See TracChangeset
for help on using the changeset viewer.