Changeset 02a01dd
- Timestamp:
- Dec 4, 2009, 1:45:04 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:
- 7dec719
- Parents:
- 168337e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio.h
r168337e r02a01dd 49 49 50 50 Two basic structures are being used in aubio: ::fvec_t and ::cvec_t. The 51 ::fvec_t structures are used to store vectors of floating pointer number ,52 optionally on several channels. ::cvec_t are used to store complex number,53 as two vectors of norm and phase elements, also on several channels.54 51 ::fvec_t structures are used to store vectors of floating pointer number. 52 ::cvec_t are used to store complex number, as two vectors of norm and phase 53 elements. 54 55 55 Additionally, the ::lvec_t structure can be used to store floating point 56 56 numbers in double precision. They are mostly used to store filter 57 57 coefficients, to avoid instability. 58 58 59 59 \subsection objects Available objects 60 60 … … 64 64 65 65 // fast Fourier transform (FFT) 66 aubio_fft_t *fft = new_aubio_fft (winsize , channels);66 aubio_fft_t *fft = new_aubio_fft (winsize); 67 67 // phase vocoder 68 aubio_pvoc_t *pv = new_aubio_pvoc (winsize, stepsize , channels);69 // onset detection 70 aubio_onset_t *onset = new_aubio_onset (method, winsize, stepsize, channels,samplerate);71 // pitch detection 72 aubio_pitch_t *pitch = new_aubio_pitch (method, winsize, stepsize, channels,samplerate);68 aubio_pvoc_t *pv = new_aubio_pvoc (winsize, stepsize); 69 // onset detection 70 aubio_onset_t *onset = new_aubio_onset (method, winsize, stepsize, samplerate); 71 // pitch detection 72 aubio_pitch_t *pitch = new_aubio_pitch (method, winsize, stepsize, samplerate); 73 73 // beat tracking 74 aubio_tempo_t *tempo = new_aubio_tempo (method, winsize, stepsize, channels,samplerate);74 aubio_tempo_t *tempo = new_aubio_tempo (method, winsize, stepsize, samplerate); 75 75 76 76 \endcode … … 82 82 Here is a simple example that creates an A-Weighting filter and applies it to a 83 83 vector. 84 84 85 85 \code 86 86 87 // set channels, window size, and sampling rate88 uint_t channels = 2,winsize = 1024, sr = 44100;87 // set window size, and sampling rate 88 uint_t winsize = 1024, sr = 44100; 89 89 // create a vector 90 fvec_t *this_buffer = new_fvec (winsize , channels);90 fvec_t *this_buffer = new_fvec (winsize); 91 91 // create the a-weighting filter 92 aubio_filter_t *this_filter = new_aubio_filter_a_weighting ( channels,sr);93 92 aubio_filter_t *this_filter = new_aubio_filter_a_weighting (sr); 93 94 94 while (running) { 95 95 // here some code to put some data in this_buffer … … 99 99 aubio_filter_do (this_filter, this_buffer); 100 100 101 // here some code to get some data from this_buffer 101 // here some code to get some data from this_buffer 102 102 // ... 103 103 } 104 104 105 105 // and free the structures 106 106 del_aubio_filter (this_filter); … … 129 129 130 130 \section download Download 131 131 132 132 Latest versions, further documentation, examples, wiki, and mailing lists can 133 133 be found at http://aubio.org . 134 134 135 135 */ 136 136 … … 141 141 142 142 Programmers just need to include this file as: 143 143 144 144 @code 145 145 #include <aubio/aubio.h> 146 146 @endcode 147 147 148 148 */ 149 149 … … 158 158 #include "cvec.h" 159 159 #include "lvec.h" 160 #include "fmat.h" 160 161 #include "musicutils.h" 161 162 #include "temporal/resampler.h"
Note: See TracChangeset
for help on using the changeset viewer.