Changeset 998d4d6
- Timestamp:
- Nov 5, 2009, 12:26:06 AM (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:
- 0bbdbfd
- Parents:
- b9c3cd2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio.h
rb9c3cd2 r998d4d6 86 86 87 87 // set channels, window size, and sampling rate 88 uint_t channels = 2, winsize = 1024, s amplerate= 44100;88 uint_t channels = 2, winsize = 1024, sr = 44100; 89 89 // create a vector 90 90 fvec_t *this_buffer = new_fvec (winsize, channels); 91 91 // create the a-weighting filter 92 aubio_filter_t *this_filter = new_aubio_filter_ weighting (channels, samplerate);92 aubio_filter_t *this_filter = new_aubio_filter_a_weighting (channels, sr); 93 93 94 94 while (running) { 95 // here some code to pass some data in fvec_t in ... 95 // here some code to put some data in this_buffer 96 // ... 97 96 98 // apply the filter, in place 97 99 aubio_filter_do (this_filter, this_buffer); 98 // here some code to used the filtered buffer 100 101 // here some code to get some data from this_buffer 102 // ... 99 103 } 100 104
Note: See TracChangeset
for help on using the changeset viewer.