API Reference
This section is the API reference for AudioSamples Python, generated from the type stubs (which also provide type checking and IDE completion).
- AudioSamples Core
- Spectral Analysis
- Features, Tonal, Constant-Q and Pitch Analysis
- Sequence Alignment and Decoding
- Structure and Segmentation
- Array Helpers
MAX_MEM_BLOCKSparseRowsabs2()axis_sort()buf_to_float()chirp()count_unique()cyclic_gradient()dtype_c2r()dtype_r2c()expand_to()fill_off_diagonal()find_files()fix_frames()index_to_slice()interp1d()interp_broadcast()is_positive_int()is_unique()localmax()localmin()match_events()match_intervals()pad_center()phasor()shear()sparsify_rows()stack()tiny()tone()valid_audio()valid_int()valid_intervals()zero_crossings()
- Array Forms and Options
- Linear Algebra
- Mel and MFCC Inversion
- Matrix Factorisation
- Semitone Filterbank
- Tuning and Notation
fifths_to_note()hz_to_fjs()hz_to_note()hz_to_svara_c()hz_to_svara_h()interval_frequencies()interval_to_fjs()list_mela()list_thaat()mela_to_degrees()mela_to_svara()midi_to_note()midi_to_svara_c()midi_to_svara_h()note_to_hz()note_to_midi()note_to_svara_c()note_to_svara_h()plimit_intervals()pythagorean_intervals()thaat_to_degrees()
- Rhythm: Onsets, Tempo and Beats
- Effects and Decomposition
- Signal Generation
- File I/O Operations
- Types
AdaptiveThresholdConfigAdaptiveThresholdMethodBeatTrackingConfigBeatTrackingDataChannelReductionComplexOnsetConfigCompressorConfigDynamicRangeMethodEnvelopeFollowerEqBandEqBandTypeExpanderConfigFadeCurveFilterResponseGateConfigHpssConfigIirFilterDesignIirFilterTypeKeyKneeTypeLimiterConfigModeMonoConversionMethodNoiseColorNormalizationMethodOnsetDetectionConfigPadSideParametricEqPeakPickingConfigPerturbationConfigPerturbationMethodPitchClassPitchContourPitchDetectionMethodPitchFramePsdResamplingQualitySampleTypeSideChainConfigSosFilterSpectralFluxConfigSpectralFluxMethodSpectrogramScaleStereoConversionMethodThreeBandEqConfigVadChannelPolicyVadConfigVadMethodWindowType
Core Classes
AudioSamples Core - Main AudioSamples class and its processing methods
Spectral Analysis - STFT, mel, MFCC, dB and unit conversions
Features, Tonal, Constant-Q and Pitch Analysis - frame-wise features, chroma/tuning, constant-Q and pitch tracking
Sequence Alignment and Decoding - DTW, Viterbi, recurrence matrices and sync
Structure and Segmentation - path enhancement, time-lag filtering, clustering and subsegmentation
Array Helpers - array helpers, zero crossings, tones and sweeps
Array Forms and Options - array forms of methods, with their extra options
Linear Algebra - NNLS, pseudo-inverse, eigendecomposition and SVD
Mel and MFCC Inversion - mel and MFCC inversion
Matrix Factorisation - non-negative matrix factorisation
Semitone Filterbank - semitone filterbank and IIR time-frequency representation
Tuning and Notation - tuning systems, note, FJS, svara, mela and thaat names
Rhythm: Onsets, Tempo and Beats - onset strength/detection, tempograms, tempo, beat tracking, PLP
Effects and Decomposition - time stretch, pitch shift, emphasis, trim/split, HPSS, Griffin-Lim, LPC
Signal Generation - Signal generation functions
File I/O Operations - File I/O operations
Types - Audio processing configurations and enumerations
Quick Reference
The complete API documentation is organized into three main sections:
- AudioSamples Class
The core audio processing class with 100+ methods for signal processing, analysis, and manipulation.
- Signal Generation
Functions to generate waveforms, noise, and test signals.
- File I/O
Audio file reading and writing with format detection.
- Types Module
Audio processing configurations and enumerations. Used throughout the library for specifying parameters and options.