Crate aubio_sys

Crate aubio_sys 

Source
Expand description

§Unsafe aubio library bindings

github crate docs GPL-3.0 CI

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, a2 coeffs
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