Namespace: scale

music21. scale

Scale namespace. Right now only supports very simple scales.

Source:

Requires

  • module:music21/base
  • module:music21/common
  • module:music21/debug
  • module:music21/interval
  • module:music21/pitch

Methods

<static> ScaleSimpleMajor(tonic) → {Array.<music21.pitch.Pitch>}

One octave of a major scale

Parameters:
Name Type Description
tonic music21.pitch.Pitch
Source:
Returns:

an octave of scale objects.

Type
Array.<music21.pitch.Pitch>

<static> ScaleSimpleMinor(tonic, minorType) → {Array.<music21.pitch.Pitch>}

One octave of a minor scale

Parameters:
Name Type Argument Default Description
tonic music21.pitch.Pitch
minorType string <optional>
'natural'

'harmonic', 'harmonic-minor',
'melodic', 'melodic-minor', 'melodic-minor-ascending',
'melodic-ascending' or other (=natural/melodic-descending)

Source:
Returns:

an octave of scale objects.

Type
Array.<music21.pitch.Pitch>

<static> SimpleDiatonicScale(tonic, scaleSteps) → {Array.<music21.pitch.Pitch>}

Function, not class

Parameters:
Name Type Description
tonic music21.pitch.Pitch
scaleSteps Array.<string>

an array of diatonic prefixes,
generally 'M' (major) or 'm' (minor) describing the seconds.

Source:
Returns:

an octave of scale objects.

Type
Array.<music21.pitch.Pitch>
Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.