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

    Interface TuneSettings

    How a tune is made: its clef, keys, times, values, length, range and the signs it may carry.

    interface TuneSettings {
        bars: number;
        clef: Clef;
        dynamics: readonly string[];
        highestMidi: number;
        keys: readonly string[];
        lowestMidi: number;
        signs: readonly TuneSign[];
        speedChanges?: readonly string[];
        tempos: readonly string[];
        timeSignatures: readonly `${number}/${number}`[];
        values: readonly NoteValue[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    bars: number

    Bars in the tune, 2 to 4

    clef: Clef
    dynamics: readonly string[]

    dynamic: the dynamics written, as term codes (default: p, mf, f)

    highestMidi: number

    The highest

    keys: readonly string[]

    The keys to draw from, as 'G:major' codes; a minor key's tune uses its natural minor, its 7th raised just before the end

    lowestMidi: number

    The lowest note the tune may use, as a MIDI number

    signs: readonly TuneSign[]

    The signs it may carry, one to three of them on each tune (default: none). speed writes changes of speed where music puts them: rit. or rall. into the last bars, or before a tempo brings the first speed back; accel. where it speeds up, then a tempo. daCapo shapes the whole tune as D.C. al Fine on three or four bars: a first part ending on the tonic at Fine, a second ending on the dominant, then back to the start

    speedChanges?: readonly string[]

    speed: the changes of speed that may be written, as term codes (default: ritardando, rallentando, accelerando and aTempo)

    tempos: readonly string[]

    tempo: the tempo words written, as term codes (default: Andante, Moderato, Allegro)

    timeSignatures: readonly `${number}/${number}`[]
    values: readonly NoteValue[]

    The note values (and rests) the bars are made of; pairs of eighths with eighthPair, a dotted quarter with the eighth after it with dottedQuarter and eighth