Pyvorin for Audio Processing

May 30, 2026 | 5 min read

Spectrogram Generation

Short-time Fourier transform with compiled windowing.

def stft(signal, window, hop):
    frames = []
    for i in range(0, len(signal) - len(window), hop):
        frame = [signal[i+j] * window[j] for j in range(len(window))]
        frames.append(dft(frame))
    return frames

Pitch Detection

Autocorrelation and YIN algorithm.

Filtering

FIR and IIR filter implementation.