Chord:
Filter:
Classes (extension) | Math | Tuning

Chord
ExtensionExtension

Represents a Chord.
Location: NOT INSTALLED!

Description

Takes an "chord name" (Symbol) and returns the semitones in a chromatic scale (0..12).

Class Methods

.all

The Chord repository, to which new chords can be added.

.at

Arguments:

input

Takes a symbol and returns a chord.

.directory

Lists all Note names and Semitones.

.names

Lists all Note names.

.choose

Creates a random chord from the library, constrained by size.

.chooseFromSelected

Creates a random chord from the library, constrained by a function.

.new

Creates a Chord from scratch. notes should be an array of Integers.

Inherited class methods

Instance Methods

.size

Returns the length of the chord.

.notes

Returns an Array of Integers.

Inherited instance methods

Examples