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

    Interface ListenTune

    A little tune played a certain way — soft or loud, fast or slow, short or smooth — to hear what a word or sign means.

    interface ListenTune {
        accents?: readonly number[];
        beats?: readonly number[];
        loudness?: Loudness | { from: Loudness; to: Loudness };
        notes?: readonly string[];
        pulse?: boolean;
        tempo?: number | { from: number; to: number };
        touch?: "fermata" | "accent" | "staccato" | "tenuto" | "legato";
    }
    Index

    Properties

    accents?: readonly number[]

    The notes stressed, by their place in the tune (0 first) — strong beats among weak ones; touch: 'accent' stresses every note

    beats?: readonly number[]

    How many beats each note lasts, in order (default: one each) — a long note and a short one, a half note and a quarter

    loudness?: Loudness | { from: Loudness; to: Loudness }

    How loud (default 'medium'), or a change from one to the other across the tune, through the loudnesses between

    notes?: readonly string[]

    The notes, written like 'C4' — or 'C4+E4+G4' for notes sounded together (default: C D E F G F E D C)

    pulse?: boolean

    A soft tick on every beat while the notes sound, to count their lengths by

    tempo?: number | { from: number; to: number }

    Beats a minute (default 96), or a change from one speed to another across the tune

    touch?: "fermata" | "accent" | "staccato" | "tenuto" | "legato"

    How the notes are played: short and detached, smooth and joined, each stressed, the last held long, or each held its full length with a slight stress (tenuto)