MCPcopy Create free account
hub / github.com/bspaans/python-mingus / __init__

Method __init__

mingus/core/scales.py:96–101  ·  view source on GitHub ↗
(self, note, octaves)

Source from the content-addressed store, hash-verified

94 """
95
96 def __init__(self, note, octaves):
97 if note.islower():
98 raise NoteFormatError("Unrecognised note '%s'" % note)
99
100 self.tonic = note
101 self.octaves = octaves
102
103 def __repr__(self):
104 return "<Scale object ('{0}')>".format(self.name)

Callers

nothing calls this directly

Calls 1

NoteFormatErrorClass · 0.90

Tested by

no test coverage detected