@lambda-musika/musika - v0.1.0
    Preparing search index...

    Namespace Music

    Built-in music utilities

    Type Aliases

    ChordName
    NoteName
    PentatonicScaleName
    ScaleName

    Variables

    A

    The frequency ratio between adjacent semitones.

    accidental

    Maps accidental symbols (♭, ♯, etc.) to their corresponding semitone adjustments.

    BASE_FREQ

    The base frequency (A4 = 440Hz).

    chord
    interval
    LOWEST_SEMITONE_DIFF_FROM_BASE

    The lowest semitone difference from the base frequency (A4 = 440Hz).

    noteNameToFrequency
    noteNameToSemitone
    OCTAVES

    The available octaves.

    pitch

    Maps pitch name (English naming system: C, D, E, etc.) to semitones.

    scale
    SEMITONES_PER_OCTAVE

    The number of semitones in an octave.

    Functions

    extend

    Extend a musical note by a series of intervals.

    semitoneToFrequency

    Converts a number of semitones from the base tone (A4 = 440Hz) to its corresponding frequency in Hz.

    Tempo

    Calculates the tempo information for a piece of music.