Class: Harmony

Harmony

A chord progression generator.

Constructor

new Harmony(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
chords Iterable

The list of chords.

rate Number <optional>
1

The relative rate of the duration of each chord.

durations Iterable <optional>
[1,1, ...]

The list of relative durations. A duration of 1 at a rate of 1 is 1 beat.

length Number <optional>
sum of durations * rate

The overall duration in beats of this Harmony sequence.

looped Boolean <optional>
false

If true, the chords and durations sequences will auto-restart (independently from each other) for the duration of containing Section.

Source: