features: onsets, spectral-flux and other audio features

maelzel.snd.features Module

Functions

amp2db(amp)

convert amp (0, 1) to dB

centroidbpf(samples, sr[, fftsize, overlap, ...])

Construct a bpf representing the centroid of the given audio over time

chunks(data, chunksize[, hop, padwith])

Iterate over data in chunks of chunksize.

db2amp(db)

convert dB to amplitude (0, 1)

filterOnsets(onsets, samples, sr[, ...])

Returns a selection array where a value of 1 marks an onset as relevant

findOffsets(onsets, samples, sr[, rmscurve, ...])

For each onset find its corresponding offset

numChannels(array)

Returns the number of channels represented by the given array

onsets(samples, sr[, winsize, hopsize, ...])

Detect onsets

onsetsAubio(samples, sr[, method, winsize, ...])

Detect onsets in samples

playTicks(times[, engine, chan, midinote, ...])

Given a list of times offsets, play these as ticks

plotOnsets(samples, sr, onsets[, onsetbpf, ...])

Plot the results of onsets detection

rmsbpf(samples, sr[, dt, overlap])

Return a bpf representing the rms of this sample as a function of time