Changeset e4f142c
- Timestamp:
- Oct 16, 2009, 9:56:26 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:
- 7778f39
- Parents:
- d25bd12
- Location:
- src/onset
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onset.c
rd25bd12 re4f142c 38 38 uint_t minioi; /**< minimum inter onset interval */ 39 39 uint_t wasonset; /**< number of frames since last onset */ 40 uint_t samplerate; /**< sampling rate of the input signal */ 40 41 }; 41 42 … … 90 91 /* Allocate memory for an onset detection */ 91 92 aubio_onset_t * new_aubio_onset (char_t * onset_mode, 92 uint_t buf_size, uint_t hop_size, uint_t channels )93 uint_t buf_size, uint_t hop_size, uint_t channels, uint_t samplerate) 93 94 { 94 95 aubio_onset_t * o = AUBIO_NEW(aubio_onset_t); … … 98 99 o->silence = -70; 99 100 o->wasonset = 0; 101 o->samplerate = samplerate; 100 102 o->pv = new_aubio_pvoc(buf_size, hop_size, channels); 101 103 o->pp = new_aubio_peakpicker(o->threshold); -
src/onset/onset.h
rd25bd12 re4f142c 53 53 */ 54 54 aubio_onset_t * new_aubio_onset (char_t * onset_mode, 55 uint_t buf_size, uint_t hop_size, uint_t channels );55 uint_t buf_size, uint_t hop_size, uint_t channels, uint_t samplerate); 56 56 57 57 /** execute onset detection
Note: See TracChangeset
for help on using the changeset viewer.