Changeset 02a01dd


Ignore:
Timestamp:
Dec 4, 2009, 1:45:04 AM (14 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

src/aubio.h: switch to mono

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio.h

    r168337e r02a01dd  
    4949
    5050  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
    5555  Additionally, the ::lvec_t structure can be used to store floating point
    5656  numbers in double precision. They are mostly used to store filter
    5757  coefficients, to avoid instability.
    58  
     58
    5959  \subsection objects Available objects
    6060
     
    6464
    6565  // fast Fourier transform (FFT)
    66   aubio_fft_t *fft = new_aubio_fft (winsize, channels);
     66  aubio_fft_t *fft = new_aubio_fft (winsize);
    6767  // 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);
    7373  // 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);
    7575
    7676  \endcode
     
    8282  Here is a simple example that creates an A-Weighting filter and applies it to a
    8383  vector.
    84  
     84
    8585  \code
    8686
    87   // set channels, window size, and sampling rate
    88   uint_t channels = 2, winsize = 1024, sr = 44100;
     87  // set window size, and sampling rate
     88  uint_t winsize = 1024, sr = 44100;
    8989  // create a vector
    90   fvec_t *this_buffer = new_fvec (winsize, channels);
     90  fvec_t *this_buffer = new_fvec (winsize);
    9191  // 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
    9494  while (running) {
    9595    // here some code to put some data in this_buffer
     
    9999    aubio_filter_do (this_filter, this_buffer);
    100100
    101     // here some code to get some data from this_buffer 
     101    // here some code to get some data from this_buffer
    102102    // ...
    103103  }
    104  
     104
    105105  // and free the structures
    106106  del_aubio_filter (this_filter);
     
    129129
    130130  \section download Download
    131  
     131
    132132  Latest versions, further documentation, examples, wiki, and mailing lists can
    133133  be found at http://aubio.org .
    134  
     134
    135135 */
    136136
     
    141141
    142142  Programmers just need to include this file as:
    143  
     143
    144144  @code
    145145    #include <aubio/aubio.h>
    146146  @endcode
    147  
     147
    148148 */
    149149
     
    158158#include "cvec.h"
    159159#include "lvec.h"
     160#include "fmat.h"
    160161#include "musicutils.h"
    161162#include "temporal/resampler.h"
Note: See TracChangeset for help on using the changeset viewer.