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

Method determine_progression

mingus/containers/bar.py:195–207  ·  view source on GitHub ↗

Return a list of lists [place_in_beat, possible_progressions].

(self, shorthand=False)

Source from the content-addressed store, hash-verified

193 return chords
194
195 def determine_progression(self, shorthand=False):
196 """Return a list of lists [place_in_beat, possible_progressions]."""
197 res = []
198 for x in self.bar:
199 res.append(
200 [
201 x[0],
202 progressions.determine(
203 x[2].get_note_names(), self.key.key, shorthand
204 ),
205 ]
206 )
207 return res
208
209 def get_note_names(self):
210 """Return a list of unique note names in the Bar."""

Callers 1

Calls 2

determineMethod · 0.80
get_note_namesMethod · 0.45

Tested by 1