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

Method empty

mingus/containers/note.py:145–152  ·  view source on GitHub ↗

Remove the data in the instance.

(self)

Source from the content-addressed store, hash-verified

143 raise NoteFormatError("Invalid note representation: %r" % name)
144
145 def empty(self):
146 """Remove the data in the instance."""
147 # TODO: Review these two. This seems to leave the object in an invalid state
148 self.name = ""
149 self.octave = 0
150
151 self.channel = _DEFAULT_CHANNEL
152 self.velocity = _DEFAULT_VELOCITY
153
154 def augment(self):
155 """Call notes.augment with this note as argument."""

Callers 1

test_set_noteMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_set_noteMethod · 0.76