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

    Function createTune

    • A short tune: bars bars in a key and a time signature of the settings, each bar a common rhythm of the values given — the first bar's rhythm usually coming back once, the last bar ending on a long note — and a melody that starts on the tonic, 3rd or 5th, moves mostly by step, rises then falls, and comes home to the tonic by step with no leap wider than a 5th into the last two notes (a minor key's 7th raised on the way, reached neither from the 6th nor from the natural 7th). One to three of the signs given are written where they belong: a dynamic under the first note, a tempo word over the start, staccato dots on a bar's quarters, an accent, a slur over notes moving by step, a fermata on the last note, a hairpin under a bar, changes of speed over the bars they change (rit. or rall. into the last bars, or before a tempo brings the first speed back; accel., then a tempo).

      With daCapo — on every tune when it is the only sign given, on half of them beside others — a tune of three or four bars is written as D.C. al Fine: a first part of one to three bars ending on the tonic, with Fine over its last bar line, and a second part ending on the 5th, with D.C. al Fine at the end; no fermata or change of speed is written on it.

      Parameters

      Returns Tune

      When the settings give no key, no time signature the values can fill, or no room in the range for a tune