construct.scale

abjad.tools.construct.scale(count, duration=Rational(1, 8))

Returns a list of notes with equal duration following an ascending C major diatonic scale, starting on middle C.

  • count, the number of notes to create.
  • duration, a duration token indicating the duration of each note. The default is 1/8.

Examples:

abjad> construct.scale(4)
[Note(c', 8), Note(d', 8), Note(e', 8), Note(f', 8)]
abjad> construct.scale(4, (1, 16))
[Note(c', 16), Note(d', 16), Note(e', 16), Note(f', 16)]

Previous topic

construct.run

Next topic

containertools.contents_delete

This Page