Class: Section

Section

A section of a Song with a particular scale and harmony.

See the overview on the documentation homepage.

Constructor

new Section(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
harmony Harmony

The Section's harmony (its chord progression)

parts Array.<Part> | Array.<Object>

The Section's parts as either an Array of Part objects, or an Array of options objects for the Part constructor

scale Scale

The Section's Scale. Must be provided unless this instance is constructed by the containing Song and it's sectionLength is set.

length Number <optional>
max Part.length

The length of the Section in beats.

Implements:
Source:

Methods

@@iterator()

The [Symbol.iterator]() generator function* that implements the iterable protocol

Source:
See: