Hiyve Components - v1.0.0
    Preparing search index...

    A short tune as data: its clef, key, time, notes, bar lines and the signs written on it.

    interface Tune {
        barLines: number[];
        bpm: number;
        clef: Clef;
        dynamics: { at: number; term: string }[];
        fifths: number;
        fine?: number;
        hairpins: { from: number; louder: boolean; to: number }[];
        key: string;
        notes: TuneNote[];
        slurs: [number, number][];
        speedChanges?: { at: number; term: string }[];
        tempo?: string;
        timeSignature: `${number}/${number}`;
    }
    Index

    Properties

    barLines: number[]

    Bar lines after these notes (their places in notes); the last bar ends at the final bar line

    bpm: number

    Beats a minute it is played at: its first speed

    clef: Clef
    dynamics: { at: number; term: string }[]

    Dynamics written under notes, each a term code of defaultMusicTerms ('p', 'mf')

    fifths: number

    The key signature: sharps (positive) or flats (negative)

    fine?: number

    D.C. al Fine: Fine written over the bar line after this note (one of barLines, drawn as the final bar line), and D.C. al Fine at the end. The music is played to the end, then again from the beginning, and ends at Fine (tunePlayOrder). Absent when not written

    hairpins: { from: number; louder: boolean; to: number }[]

    Hairpins under notes: getting louder (opening) or softer

    key: string

    Its key, as a 'G:major' code: the tune ends on the key's tonic

    notes: TuneNote[]
    slurs: [number, number][]

    Slurs, each the places of its first and last note

    speedChanges?: { at: number; term: string }[]

    Changes of speed written over notes, each a term code at the note it starts on: 'ritardando' (rit.) and 'rallentando' (rall.), gradually slower from there; 'accelerando' (accel.), gradually faster; 'aTempo' (a tempo), back to the first speed. Absent when none is written

    tempo?: string

    A tempo word written over the start, as a term code ('allegro')

    timeSignature: `${number}/${number}`