Sign in

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

    ChromaNorm

    pub(all) enum ChromaNorm {
    None
    L1
    L2
    Max
    } derive(Eq,
    Debug
    )

    Normalization mode for Chroma feature vectors across time frames.

    ChromaNorm::equal

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

    ChromaNorm::not_equal

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

    chroma_filterbank

    fn chroma_filterbank(sample_rate : Int, n_fft : Int, tuning : Double, f_min : Double) ->
    FeatureMatrix

    Generates a 12-bin Chroma filterbank projecting frequency bins to 12 semitones. Returns a FeatureMatrix of shape [12, n_bins].

    chroma_from_spectrogram

    fn chroma_from_spectrogram(spectrogram :
    FeatureMatrix
    , sample_rate : Int, n_fft : Int, norm : ChromaNorm, tuning : Double, f_min : Double) -> Result[
    FeatureMatrix
    ,
    MelError
    ]

    Extracts 12-bin Chroma representation from a 2D power/magnitude spectrogram. tuning must be finite; f_min must be finite and in [0, sample_rate / 2].

    chroma_stft

    End-to-end 12-bin Chroma STFT feature extraction pipeline.

    pitch_class_name

    fn pitch_class_name(idx : Int) -> String

    Returns standard pitch class name for index 0..=11 (0 = C, 9 = A, etc.).

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io