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

    Function createIntervalIdCard

    • Two notes on the staff to name the interval between, as @hiyve/music-theory asks it — read from the staff, never by ear or by playing. With naturalsOnly, both notes are naturals. With generic, the number alone is asked and the choices are numbers, smallest first: each number of the settings' intervals that fits the range comes up as often as any other, and its two notes are any the range holds, whatever the quality — E to F and B to C as 2nds, minor 6ths and 7ths too — so every 2nd, 3rd … on the staff is met. With halfWhole, a 2nd is asked as a half step or a whole step, the half step always the first choice. With ask: 'shape', how the notes are written is asked instead: one after the other ('melodic') or together ('harmonic'), drawn evenly, those two the choices in that order.

      Parameters

      Returns IntervalIdCard

      When no interval of the settings fits the range, or none is spelled with naturals; with halfWhole, when an interval is not a 2nd