Sign in

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

    TempoConfig

    pub(all) struct TempoConfig {
    min_bpm : Double
    max_bpm : Double
    start_bpm : Double
    std_bpm : Double
    win_length : Int
    hop_length : Int
    } derive(
    Debug
    )

    Configuration for tempogram computation and tempo estimation.

    TempoConfig::default

    fn TempoConfig::default() -> TempoConfig

    Default tempo configuration.

    TempogramResult

    pub(all) struct TempogramResult {
    tempogram :
    FeatureMatrix

    tempi : Array[Double]
    bpm : Double
    } derive(
    Debug
    )

    Result of tempogram analysis.

    tempogram

    Extract tempogram and estimate tempo directly from single-channel AudioBuffer.

    tempogram_from_onset

    fn tempogram_from_onset(onset_env : Array[Double], sample_rate : Int, hop_length : Int, config? : TempoConfig) -> TempogramResult

    Compute autocorrelation tempogram and estimate global tempo from onset envelope. Only integer lags inside the inclusive BPM range and analysis window are used. Returns an empty result with bpm=0 when no such lag exists.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io