Skip to content

Pattern: PDegree

Map scale index to MIDI notes in .

Example output

>>> p = PDegree(PSeries(0, 1), Scale.major)
>>> p.nextn(16)
[0, 2, 4, 5, 7, 9, 11, 12, 14, 16, 17, 19, 21, 23, 24, 26]