jdxi_editor.audio.analysers.waveform_analyser
Min/max decimation of a waveform onto a fixed number of columns.
One sample of a click survives, because each column keeps the extremes of the samples that fall in it rather than their average.
Attributes
Functions
|
How many samples a timebase covers. |
|
Reduce one channel to |
Module Contents
- jdxi_editor.audio.analysers.waveform_analyser.window_samples(timebase_ms: int, sample_rate: int) int[source]
How many samples a timebase covers.
- Parameters:
timebase_ms – int one of
TIMEBASE_MSsample_rate – int Hz
- Returns:
int
- jdxi_editor.audio.analysers.waveform_analyser.decimate_minmax(samples: numpy.ndarray, columns: int = WAVEFORM_COLUMNS) numpy.ndarray[source]
Reduce one channel to
columnsof(min, max).- Parameters:
samples – np.ndarray one channel
columns – int
- Returns:
np.ndarray shape
(columns, 2), float32