Sign in

    1zhouhaoran1/moonmel/src/features/cqt does not have a README file

    CqtConfig

    pub(all) struct CqtConfig {
    sample_rate : Int
    hop_length : Int
    f_min : Double
    n_bins : Int
    bins_per_octave : Int
    tuning : Double
    power : Double
    } derive(Eq,
    Debug
    )

    Configuration for Constant-Q Transform.

    CqtConfig::default

    fn CqtConfig::default() -> CqtConfig

    Default CqtConfig (16 kHz, 512 hop, C1 min frequency 32.7 Hz, 84 bins / 7 octaves, 12 bins/octave).

    CqtConfig::equal

    fn CqtConfig::equal(CqtConfig, CqtConfig) -> Bool

    CqtConfig::not_equal

    fn CqtConfig::not_equal(x : CqtConfig, y : CqtConfig) -> Bool

    CqtConfig::validate

    Validate CqtConfig parameters.

    cqt

    Extract Constant-Q Transform (CQT) power/magnitude spectrogram. Returns FeatureMatrix of shape [n_bins, n_frames].

    cqt_frequencies

    fn cqt_frequencies(config : CqtConfig) -> Array[Double]

    Compute center frequencies for all CQT bins.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io