Hiyve Components - v1.0.0
    Preparing search index...
    • A bar beats long filled with values drawn at random from those given, left to right, its rests written as they are read (barReadsWell): never a bar of rests alone, a half rest only on a strong beat, two quarter rests never where a half rest is written. null when the values drawn stop short of the bar, or no bar drawn reads well. With beat — a compound signature's dotted quarter (see compoundBeat) — the bar is filled one beat at a time, so no value runs over a beat: a 6/8 bar is two dotted-quarter beats, each a dotted quarter, a quarter and an eighth, three eighths and so on, never three quarters, and never a beat of rests alone.

      Parameters

      • values: readonly NoteValue[]
      • beats: number
      • random: () => number
      • Optionalbeat: number | null

      Returns NoteValue[] | null