Skip to content

hpss

hpss(y, options?): object

Defined in: packages/pleco-xa/src/effects/index.js:462

Decompose an audio time series into harmonic and percussive components. Pipeline: stft → decompose.hpss (masked components) → istft with length matched to the input, so harmonic + percussive ≈ y at margin=1.

Float32Array<ArrayBufferLike>

Audio signal

boolean = true

number = null

defaults to n_fft/4

number | number[] = 31

number | number[] = 1.0

number = 2048

string = 'constant'

number = 2.0

number = null

defaults to n_fft

string = 'hann'

object

Both length y.length

harmonic: Float32Array

percussive: Float32Array