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

Method change_octave

mingus/containers/note.py:162–166  ·  view source on GitHub ↗

Change the octave of the note to the current octave + diff.

(self, diff)

Source from the content-addressed store, hash-verified

160 self.name = notes.diminish(self.name)
161
162 def change_octave(self, diff):
163 """Change the octave of the note to the current octave + diff."""
164 self.octave += diff
165 if self.octave < 0:
166 self.octave = 0
167
168 def octave_up(self):
169 """Increment the current octave with 1."""

Callers 2

octave_upMethod · 0.95
octave_downMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected