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

Method transpose

mingus/containers/bar.py:180–186  ·  view source on GitHub ↗

Transpose the notes in the bar up or down the interval. Call transpose() on all NoteContainers in the bar.

(self, interval, up=True)

Source from the content-addressed store, hash-verified

178 cont[2].diminish()
179
180 def transpose(self, interval, up=True):
181 """Transpose the notes in the bar up or down the interval.
182
183 Call transpose() on all NoteContainers in the bar.
184 """
185 for cont in self.bar:
186 cont[2].transpose(interval, up)
187
188 def determine_chords(self, shorthand=False):
189 """Return a list of lists [place_in_beat, possible_chords]."""

Callers 1

test_transposeMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_transposeMethod · 0.76