Skip to content

Move.melodic_pattern

Module constants

  • CHROMATIC_MODE_OFFSET = 3
  • SCALES

Classes

class Scale(NamedTuple)

Bases: NamedTuple

Attributes

  • name = ''
  • notes

to_root_note(self, root_note)

scale_for_notes(self, notes)

class NoteInfo(NamedTuple)

Bases: NamedTuple

Attributes

  • index = None
  • channel = 0
  • color = 'NoteInvalid'

class MelodicPattern(NamedTuple)

Bases: NamedTuple

Attributes

  • steps
  • scale
  • root_note = 0
  • origin
  • chromatic_mode = False
  • width = None
  • height = None

extended_scale(self)

is_aligned(self)

note(self, x, y)

__getitem__(self, i)

_boundary_reached(self, x, y)

_octave_and_note_by_index(self, index)

_octave_and_note(self, x, y)

_color_for_note(self, note)

_get_note_info(self, octave_note, root_note, channel)

_octave_and_note_linear(self, i)

Functions

scale_by_name(name)