Expand description
§Unsafe aubio library bindings
This crate provides generated unsafe Rust bindings to aubio C library.
Probably this isn’t that you really need. See safe bindings.
Structs§
- _aubio_
dct_ t - _aubio_
fft_ t - _aubio_
filter_ t - _aubio_
filterbank_ t - _aubio_
mfcc_ t - _aubio_
notes_ t - _aubio_
onset_ t - _aubio_
parameter_ t - _aubio_
pitch_ t - _aubio_
pvoc_ t - _aubio_
resampler_ t - _aubio_
sampler_ t - _aubio_
sink_ t - _aubio_
source_ t - _aubio_
specdesc_ t - _aubio_
spectral_ whitening_ t - _aubio_
tempo_ t - _aubio_
tss_ t - _aubio_
wavetable_ t - cvec_t
- Vector of real-valued phase and spectrum data
- fmat_t
- Buffer for real data
- fvec_t
- Buffer for real data
- lvec_t
- Buffer for real data in double precision
Constants§
- AUBIO_
LSMP_ FMT - AUBIO_
SMPL_ FMT - HAVE_
AUBIO_ DOUBLE - aubio_
log_ level_ AUBIO_ LOG_ DBG - < debug messages
- aubio_
log_ level_ AUBIO_ LOG_ ERR - < critical errors
- aubio_
log_ level_ AUBIO_ LOG_ INF - < infos
- aubio_
log_ level_ AUBIO_ LOG_ LAST_ LEVEL - < number of valid levels
- aubio_
log_ level_ AUBIO_ LOG_ MSG - < general messages
- aubio_
log_ level_ AUBIO_ LOG_ WRN - < warnings
Functions§
- aubio_
bintofreq ⚠ - convert frequency bin to frequency (Hz)
- aubio_
bintomidi ⚠ - convert frequency bin to midi value
- aubio_
cleanup ⚠ - clean up cached memory at the end of program
- aubio_
db_ ⚠spl - compute sound pressure level (SPL) in dB
- aubio_
dct_ ⚠do - compute forward DCT
- aubio_
dct_ ⚠rdo - compute backward DCT
- aubio_
fft_ ⚠do - compute forward FFT
- aubio_
fft_ ⚠do_ complex - compute forward FFT
- aubio_
fft_ ⚠get_ imag - compute imaginary part from the norm/phas cvec
- aubio_
fft_ ⚠get_ norm - compute norm component from real/imag parts
- aubio_
fft_ ⚠get_ phas - compute phas spectrum from real/imag parts
- aubio_
fft_ ⚠get_ real - compute real part from norm/phas components
- aubio_
fft_ ⚠get_ realimag - convert real/imag spectrum to norm/phas spectrum
- aubio_
fft_ ⚠get_ spectrum - convert real/imag spectrum to norm/phas spectrum
- aubio_
fft_ ⚠rdo - compute backward (inverse) FFT
- aubio_
fft_ ⚠rdo_ complex - compute backward (inverse) FFT from real/imag
- aubio_
filter_ ⚠do - filter input vector (in-place)
- aubio_
filter_ ⚠do_ filtfilt - filter input vector forward and backward
- aubio_
filter_ ⚠do_ outplace - filter input vector (out-of-place)
- aubio_
filter_ ⚠do_ reset - reset filter memory
- aubio_
filter_ ⚠get_ feedback - returns a pointer to feedback coefficients \f$ a_i \f$
- aubio_
filter_ ⚠get_ feedforward - returns a pointer to feedforward coefficients \f$ b_i \f$
- aubio_
filter_ ⚠get_ order - get order of the filter
- aubio_
filter_ ⚠get_ samplerate - get sampling rate of the filter
- aubio_
filter_ ⚠set_ a_ weighting - set feedback and feedforward coefficients of a A-weighting filter
- aubio_
filter_ ⚠set_ biquad - set coefficients of a biquad filter
- aubio_
filter_ ⚠set_ c_ weighting - set feedback and feedforward coefficients of a C-weighting filter
- aubio_
filter_ ⚠set_ samplerate - get sampling rate of the filter
- aubio_
filterbank_ ⚠do - compute filterbank
- aubio_
filterbank_ ⚠get_ coeffs - return a pointer to the matrix object containing all filter coefficients
- aubio_
filterbank_ ⚠get_ norm - get norm parameter
- aubio_
filterbank_ ⚠get_ power - get power parameter
- aubio_
filterbank_ ⚠set_ coeffs - copy filter coefficients to the filterbank
- aubio_
filterbank_ ⚠set_ mel_ coeffs - Mel filterbank initialization
- aubio_
filterbank_ ⚠set_ mel_ coeffs_ htk - Mel filterbank initialization
- aubio_
filterbank_ ⚠set_ mel_ coeffs_ slaney - filterbank initialization for Mel filters using Slaney’s coefficients
- aubio_
filterbank_ ⚠set_ norm - set norm parameter
- aubio_
filterbank_ ⚠set_ power - set power parameter
- aubio_
filterbank_ ⚠set_ triangle_ bands - filterbank initialization with triangular and overlapping bands
- aubio_
freqtobin ⚠ - convert frequency (Hz) to frequency bin
- aubio_
freqtomidi ⚠ - convert frequency (Hz) to midi value (0-128)
- aubio_
hztomel ⚠ - convert frequency (Hz) to mel
- aubio_
hztomel_ ⚠htk - convert frequency (Hz) to mel
- aubio_
level_ ⚠detection - get buffer level if level >= threshold, 1. otherwise
- aubio_
level_ ⚠lin - compute sound level on a linear scale
- aubio_
log_ ⚠reset - Reset all logging functions to the default one
- aubio_
log_ ⚠set_ function - Set logging function for all levels
- aubio_
log_ ⚠set_ level_ function - Set logging function for a given level
- aubio_
meltohz ⚠ - convert mel to frequency (Hz)
- aubio_
meltohz_ ⚠htk - convert mel to frequency (Hz)
- aubio_
mfcc_ ⚠do - mfcc object processing
- aubio_
mfcc_ ⚠get_ power - get power parameter
- aubio_
mfcc_ ⚠get_ scale - get scaling parameter
- aubio_
mfcc_ ⚠set_ mel_ coeffs - Mel filterbank initialization
- aubio_
mfcc_ ⚠set_ mel_ coeffs_ htk - Mel filterbank initialization
- aubio_
mfcc_ ⚠set_ mel_ coeffs_ slaney - Mel filterbank initialization (Auditory Toolbox’s parameters)
- aubio_
mfcc_ ⚠set_ power - set power parameter
- aubio_
mfcc_ ⚠set_ scale - set scaling parameter
- aubio_
miditobin ⚠ - convert midi value to frequency bin
- aubio_
miditofreq ⚠ - convert midi value (0-128) to frequency (Hz)
- aubio_
notes_ ⚠do - execute note detection on an input signal frame
- aubio_
notes_ ⚠get_ minioi_ ms - get notes detection minimum inter-onset interval, in millisecond
- aubio_
notes_ ⚠get_ release_ drop - get notes object release drop level, in dB
- aubio_
notes_ ⚠get_ silence - get notes detection silence threshold
- aubio_
notes_ ⚠set_ minioi_ ms - set notes detection minimum inter-onset interval, in millisecond
- aubio_
notes_ ⚠set_ release_ drop - set note release drop level, in dB
- aubio_
notes_ ⚠set_ silence - set notes detection silence threshold
- aubio_
onset_ ⚠do - execute onset detection
- aubio_
onset_ ⚠get_ awhitening - get onset detection adaptive whitening
- aubio_
onset_ ⚠get_ compression - get onset detection log compression
- aubio_
onset_ ⚠get_ delay - get delay in samples
- aubio_
onset_ ⚠get_ delay_ ms - get delay in milliseconds
- aubio_
onset_ ⚠get_ delay_ s - get delay in seconds
- aubio_
onset_ ⚠get_ descriptor - get onset detection function
- aubio_
onset_ ⚠get_ last - get the time of the latest onset detected, in samples
- aubio_
onset_ ⚠get_ last_ ms - get the time of the latest onset detected, in milliseconds
- aubio_
onset_ ⚠get_ last_ s - get the time of the latest onset detected, in seconds
- aubio_
onset_ ⚠get_ minioi - get minimum inter onset interval in samples
- aubio_
onset_ ⚠get_ minioi_ ms - get minimum inter onset interval in milliseconds
- aubio_
onset_ ⚠get_ minioi_ s - get minimum inter onset interval in seconds
- aubio_
onset_ ⚠get_ silence - get onset detection silence threshold
- aubio_
onset_ ⚠get_ threshold - get onset peak picking threshold
- aubio_
onset_ ⚠get_ thresholded_ descriptor - get thresholded onset detection function
- aubio_
onset_ ⚠reset - reset onset detection
- aubio_
onset_ ⚠set_ awhitening - set onset detection adaptive whitening
- aubio_
onset_ ⚠set_ compression - set or disable log compression
- aubio_
onset_ ⚠set_ default_ parameters - set default parameters
- aubio_
onset_ ⚠set_ delay - set delay in samples
- aubio_
onset_ ⚠set_ delay_ ms - set delay in milliseconds
- aubio_
onset_ ⚠set_ delay_ s - set delay in seconds
- aubio_
onset_ ⚠set_ minioi - set minimum inter onset interval in samples
- aubio_
onset_ ⚠set_ minioi_ ms - set minimum inter onset interval in milliseconds
- aubio_
onset_ ⚠set_ minioi_ s - set minimum inter onset interval in seconds
- aubio_
onset_ ⚠set_ silence - set onset detection silence threshold
- aubio_
onset_ ⚠set_ threshold - set onset detection peak picking threshold
- aubio_
parameter_ ⚠get_ current_ value - get current parameter value, without interpolation
- aubio_
parameter_ ⚠get_ max_ value - get maximum value of this parameter
- aubio_
parameter_ ⚠get_ min_ value - get minimum value of this parameter
- aubio_
parameter_ ⚠get_ next_ value - get next parameter
- aubio_
parameter_ ⚠get_ steps - get number of steps of this parameter
- aubio_
parameter_ ⚠set_ current_ value - set current parameter value, skipping interpolation
- aubio_
parameter_ ⚠set_ max_ value - set maximum value of this parameter
- aubio_
parameter_ ⚠set_ min_ value - set minimum value of this parameter
- aubio_
parameter_ ⚠set_ steps - set number of steps used for interpolation
- aubio_
parameter_ ⚠set_ target_ value - set target value of the parameter
- aubio_
pitch_ ⚠do - execute pitch detection on an input signal frame
- aubio_
pitch_ ⚠get_ confidence - get the current confidence
- aubio_
pitch_ ⚠get_ silence - set the silence threshold of the pitch detection object
- aubio_
pitch_ ⚠get_ tolerance - get yin or yinfft tolerance threshold
- aubio_
pitch_ ⚠set_ silence - set the silence threshold of the pitch detection object
- aubio_
pitch_ ⚠set_ tolerance - change yin or yinfft tolerance threshold
- aubio_
pitch_ ⚠set_ unit - set the output unit of the pitch detection object
- aubio_
pvoc_ ⚠do - compute spectral frame
- aubio_
pvoc_ ⚠get_ hop - get hop size
- aubio_
pvoc_ ⚠get_ win - get window size
- aubio_
pvoc_ ⚠rdo - compute signal from spectral frame
- aubio_
pvoc_ ⚠set_ window - set window type
- aubio_
resampler_ ⚠do - resample input in output
- aubio_
sampler_ ⚠do - process sampler function
- aubio_
sampler_ ⚠do_ multi - process sampler function, multiple channels
- aubio_
sampler_ ⚠get_ playing - get current playing state
- aubio_
sampler_ ⚠load - load source in sampler
- aubio_
sampler_ ⚠play - play sample from start
- aubio_
sampler_ ⚠set_ playing - set current playing state
- aubio_
sampler_ ⚠stop - stop sample
- aubio_
silence_ ⚠detection - check if buffer level in dB SPL is under a given threshold
- aubio_
sink_ ⚠close - close sink
- aubio_
sink_ ⚠do - write monophonic vector of length hop_size to sink
- aubio_
sink_ ⚠do_ multi - write polyphonic vector of length hop_size to sink
- aubio_
sink_ ⚠get_ channels - get channels of sink object
- aubio_
sink_ ⚠get_ samplerate - get samplerate of sink object
- aubio_
sink_ ⚠preset_ channels - preset sink channels
- aubio_
sink_ ⚠preset_ samplerate - preset sink samplerate
- aubio_
source_ ⚠close - close source object
- aubio_
source_ ⚠do - read monophonic vector of length hop_size from source object
- aubio_
source_ ⚠do_ multi - read polyphonic vector of length hop_size from source object
- aubio_
source_ ⚠get_ channels - get channels of source object
- aubio_
source_ ⚠get_ duration - get the duration of source object, in frames
- aubio_
source_ ⚠get_ samplerate - get samplerate of source object
- aubio_
source_ ⚠seek - seek source object
- aubio_
specdesc_ ⚠do - execute spectral description function on a spectral frame
- aubio_
spectral_ ⚠whitening_ do - execute spectral adaptive whitening, in-place
- aubio_
spectral_ ⚠whitening_ get_ floor - get floor of spectral whitening
- aubio_
spectral_ ⚠whitening_ get_ relax_ time - get relaxation time of spectral whitening
- aubio_
spectral_ ⚠whitening_ reset - reset spectral whitening object
- aubio_
spectral_ ⚠whitening_ set_ floor - set floor for spectral whitening
- aubio_
spectral_ ⚠whitening_ set_ relax_ time - set relaxation time for spectral whitening
- aubio_
tempo_ ⚠do - execute tempo detection
- aubio_
tempo_ ⚠get_ bpm - get current tempo
- aubio_
tempo_ ⚠get_ confidence - get current tempo confidence
- aubio_
tempo_ ⚠get_ delay - get current delay
- aubio_
tempo_ ⚠get_ delay_ ms - get current delay in ms
- aubio_
tempo_ ⚠get_ delay_ s - get current delay in seconds
- aubio_
tempo_ ⚠get_ last - get the time of the latest beat detected, in samples
- aubio_
tempo_ ⚠get_ last_ ms - get the time of the latest beat detected, in milliseconds
- aubio_
tempo_ ⚠get_ last_ s - get the time of the latest beat detected, in seconds
- aubio_
tempo_ ⚠get_ last_ tatum - get position of last_tatum, in samples
- aubio_
tempo_ ⚠get_ period - get current beat period in samples
- aubio_
tempo_ ⚠get_ period_ s - get current beat period in seconds
- aubio_
tempo_ ⚠get_ silence - get tempo detection silence threshold
- aubio_
tempo_ ⚠get_ threshold - get tempo peak picking threshold
- aubio_
tempo_ ⚠set_ delay - set current delay
- aubio_
tempo_ ⚠set_ delay_ ms - set current delay
- aubio_
tempo_ ⚠set_ delay_ s - set current delay in seconds
- aubio_
tempo_ ⚠set_ silence - set tempo detection silence threshold
- aubio_
tempo_ ⚠set_ tatum_ signature - set number of tatum per beat
- aubio_
tempo_ ⚠set_ threshold - set tempo detection peak picking threshold
- aubio_
tempo_ ⚠was_ tatum - check whether a tatum was detected in the current frame
- aubio_
tss_ ⚠do - split input into transient and steady states components
- aubio_
tss_ ⚠set_ alpha - set parameter a, defaults to 3
- aubio_
tss_ ⚠set_ beta - set parameter b, defaults to 3
- aubio_
tss_ ⚠set_ threshold - set transient / steady state separation threshold
- aubio_
unwrap2pi ⚠ - compute the principal argument
- aubio_
wavetable_ ⚠do - process wavetable function
- aubio_
wavetable_ ⚠do_ multi - process wavetable function, multiple channels
- aubio_
wavetable_ ⚠get_ amp - get wavetable amplitude
- aubio_
wavetable_ ⚠get_ freq - get wavetable frequency
- aubio_
wavetable_ ⚠get_ playing - get current playing state
- aubio_
wavetable_ ⚠load - load source in wavetable
- aubio_
wavetable_ ⚠play - play sample from start
- aubio_
wavetable_ ⚠set_ amp - set wavetable amplitude
- aubio_
wavetable_ ⚠set_ freq - set wavetable frequency
- aubio_
wavetable_ ⚠set_ playing - set current playing state
- aubio_
wavetable_ ⚠stop - stop wavetable
- aubio_
zero_ ⚠crossing_ rate - zero-crossing rate (ZCR)
- cvec_
copy ⚠ - make a copy of a vector
- cvec_
logmag ⚠ - take logarithmic magnitude
- cvec_
norm_ ⚠get_ data - read norm data from a complex buffer
- cvec_
norm_ ⚠get_ sample - read norm value from a complex buffer
- cvec_
norm_ ⚠ones - set all norm elements to one
- cvec_
norm_ ⚠set_ all - set all norm elements to a given value
- cvec_
norm_ ⚠set_ sample - write norm value in a complex buffer
- cvec_
norm_ ⚠zeros - set all norm elements to zero
- cvec_
phas_ ⚠get_ data - read phase data from a complex buffer
- cvec_
phas_ ⚠get_ sample - read phase value from a complex buffer
- cvec_
phas_ ⚠ones - set all phase elements to one
- cvec_
phas_ ⚠set_ all - set all phase elements to a given value
- cvec_
phas_ ⚠set_ sample - write phase value in a complex buffer
- cvec_
phas_ ⚠zeros - set all phase elements to zero
- cvec_
print ⚠ - print out cvec data
- cvec_
zeros ⚠ - set all norm and phas elements to zero
- del_
aubio_ ⚠dct - delete DCT object
- del_
aubio_ ⚠fft - delete FFT object
- del_
aubio_ ⚠filter - delete a filter object
- del_
aubio_ ⚠filterbank - destroy filterbank object
- del_
aubio_ ⚠mfcc - delete mfcc object
- del_
aubio_ ⚠notes - delete notes detection object
- del_
aubio_ ⚠onset - delete onset detection object
- del_
aubio_ ⚠parameter - destroy ::aubio_parameter_t object
- del_
aubio_ ⚠pitch - deletion of the pitch detection object
- del_
aubio_ ⚠pvoc - delete phase vocoder object
- del_
aubio_ ⚠resampler - delete resampler object
- del_
aubio_ ⚠sampler - destroy ::aubio_sampler_t object
- del_
aubio_ ⚠sink - close sink and cleanup memory
- del_
aubio_ ⚠source - close source and cleanup memory
- del_
aubio_ ⚠specdesc - deletion of a spectral descriptor
- del_
aubio_ ⚠spectral_ whitening - deletion of a spectral whitening
- del_
aubio_ ⚠tempo - delete tempo detection object
- del_
aubio_ ⚠tss - delete tss object
- del_
aubio_ ⚠wavetable - destroy aubio_wavetable_t object
- del_
cvec ⚠ - cvec_t buffer deletion function
- del_
fmat ⚠ - fmat_t buffer deletion function
- del_
fvec ⚠ - fvec_t buffer deletion function
- del_
lvec ⚠ - lvec_t buffer deletion function
- fmat_
copy ⚠ - make a copy of a matrix
- fmat_
get_ ⚠channel - read channel vector from a buffer
- fmat_
get_ ⚠channel_ data - get vector buffer from an fmat data
- fmat_
get_ ⚠data - read data from a buffer
- fmat_
get_ ⚠sample - read sample value in a buffer
- fmat_
ones ⚠ - set all elements to ones
- fmat_
print ⚠ - print out fmat data
- fmat_
rev ⚠ - revert order of vector elements
- fmat_
set ⚠ - set all elements to a given value
- fmat_
set_ ⚠sample - write sample value in a buffer
- fmat_
vecmul ⚠ - compute the product of a matrix by a vector
- fmat_
weight ⚠ - apply weight to vector
- fmat_
zeros ⚠ - set all elements to zero
- fvec_
abs ⚠ - compute the \f$abs(x)\f$ of each vector elements
- fvec_
ceil ⚠ - compute the \f$ceil(x)\f$ of each vector elements
- fvec_
clamp ⚠ - clamp the values of a vector within the range [-abs(max), abs(max)]
- fvec_
copy ⚠ - make a copy of a vector
- fvec_
cos ⚠ - compute \f$cos(x)\f$ of each vector elements
- fvec_
exp ⚠ - compute \f$e^x\f$ of each vector elements
- fvec_
floor ⚠ - compute the \f$floor(x)\f$ of each vector elements
- fvec_
get_ ⚠data - read data from a buffer
- fvec_
get_ ⚠sample - read sample value in a buffer
- fvec_
log ⚠ - compute the \f$log(x)\f$ of each vector elements
- fvec_
log10 ⚠ - compute the \f$log10(x)\f$ of each vector elements
- fvec_
ones ⚠ - set all elements to ones
- fvec_
pow ⚠ - raise each vector elements to the power pow
- fvec_
print ⚠ - print out fvec data
- fvec_
rev ⚠ - revert order of vector elements
- fvec_
round ⚠ - compute the \f$round(x)\f$ of each vector elements
- fvec_
set_ ⚠all - set all elements to a given value
- fvec_
set_ ⚠sample - write sample value in a buffer
- fvec_
set_ ⚠window - set elements of a vector to window coefficients
- fvec_
sin ⚠ - compute \f$sin(x)\f$ of each vector elements
- fvec_
sqrt ⚠ - compute the \f$sqrt(x)\f$ of each vector elements
- fvec_
weight ⚠ - apply weight to vector
- fvec_
weighted_ ⚠copy - make a copy of a vector, applying weights to each element
- fvec_
zeros ⚠ - set all elements to zero
- lvec_
get_ ⚠data - read data from a buffer
- lvec_
get_ ⚠sample - read sample value in a buffer
- lvec_
ones ⚠ - set all elements to ones
- lvec_
print ⚠ - print out lvec data
- lvec_
set_ ⚠all - set all elements to a given value
- lvec_
set_ ⚠sample - write sample value in a buffer
- lvec_
zeros ⚠ - set all elements to zero
- new_
aubio_ ⚠dct - create new DCT computation object
- new_
aubio_ ⚠fft - create new FFT computation object
- new_
aubio_ ⚠filter - create new filter object
- new_
aubio_ ⚠filter_ a_ weighting - create new A-design filter
- new_
aubio_ ⚠filter_ biquad - create biquad filter with
b0,b1,b2,a1,a2coeffs - new_
aubio_ ⚠filter_ c_ weighting - create new C-design filter
- new_
aubio_ ⚠filterbank - create filterbank object
- new_
aubio_ ⚠mfcc - create mfcc object
- new_
aubio_ ⚠notes - create notes detection object
- new_
aubio_ ⚠onset - create onset detection object
- new_
aubio_ ⚠parameter - create new parameter object
- new_
aubio_ ⚠pitch - creation of the pitch detection object
- new_
aubio_ ⚠pvoc - create phase vocoder object
- new_
aubio_ ⚠resampler - create resampler object
- new_
aubio_ ⚠sampler - create new sampler object
- new_
aubio_ ⚠sink - create new ::aubio_sink_t
- new_
aubio_ ⚠source - create new ::aubio_source_t
- new_
aubio_ ⚠specdesc - creation of a spectral description object
- new_
aubio_ ⚠spectral_ whitening - creation of a spectral whitening object
- new_
aubio_ ⚠tempo - create tempo detection object
- new_
aubio_ ⚠tss - create tss object
- new_
aubio_ ⚠wavetable - create new wavetable object
- new_
aubio_ ⚠window - create window
- new_
cvec ⚠ - cvec_t buffer creation function
- new_
fmat ⚠ - fmat_t buffer creation function
- new_
fvec ⚠ - fvec_t buffer creation function
- new_
lvec ⚠ - lvec_t buffer creation function
Type Aliases§
- aubio_
dct_ t - DCT object
- aubio_
fft_ t - FFT object
- aubio_
filter_ t - Digital filter
- aubio_
filterbank_ t - filterbank object
- aubio_
log_ function_ t - Logging function prototype, to be passed to ::aubio_log_set_function
- aubio_
log_ level - list of logging levels
- aubio_
mfcc_ t - mfcc object
- aubio_
notes_ t - notes detection object
- aubio_
onset_ t - onset detection object
- aubio_
parameter_ t - parameter object
- aubio_
pitch_ t - pitch detection object
- aubio_
pvoc_ t - phasevocoder object
- aubio_
resampler_ t - resampler object
- aubio_
sampler_ t - sampler object
- aubio_
sink_ t - media sink object
- aubio_
source_ t - media source object
- aubio_
specdesc_ t - spectral description structure
- aubio_
spectral_ whitening_ t - spectral whitening structure
- aubio_
tempo_ t - tempo detection structure
- aubio_
tss_ t - Transient / Steady-state Separation object
- aubio_
wavetable_ t - wavetable object
- char_t
- character
- lsmp_t
- sint_t
- signed integer
- smpl_t
- uint_t
- unsigned integer