SpectrumCQ

streaming mode | Tonal category

Inputs

  • frame (vector_real) - the input audio frame

Outputs

  • spectrumCQ (vector_real) - the magnitude constant-Q spectrum

Parameters

  • binsPerOctave (integer ∈ [1, ∞), default = 12) :

    number of bins per octave

  • minFrequency (real ∈ [1, ∞), default = 32.7) :

    minimum frequency [Hz]

  • minimumKernelSize (integer ∈ [2, ∞), default = 4) :

    minimum size allowed for frequency kernels

  • numberBins (integer ∈ [1, ∞), default = 84) :

    number of frequency bins, starting at minFrequency

  • sampleRate (real ∈ [0, ∞), default = 44100) :

    FFT sampling rate [Hz]

  • scale (real ∈ [0, ∞), default = 1) :

    filters scale. Larger values use longer windows

  • threshold (real ∈ [0, 1), default = 0.01) :

    bins whose magnitude is below this quantile are discarded

  • windowType (string ∈ {hamming, hann, hannnsgcq, triangular, square, blackmanharris62, blackmanharris70, blackmanharris74, blackmanharris92}, default = hann) :

    the window type

  • zeroPhase (bool ∈ {true, false}, default = true) :

    a boolean value that enables zero-phase windowing. Input audio frames should be windowed with the same phase mode

Description

This algorithm computes the magnitude of the Constant-Q spectrum. See ConstantQ algorithm for more details.

Source code

See also

ConstantQ (standard) ConstantQ (streaming) SpectrumCQ (standard)