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

Method play_Track

mingus/midi/sequencer.py:314–325  ·  view source on GitHub ↗

Play a Track object.

(self, track, channel=1, bpm=120)

Source from the content-addressed store, hash-verified

312 return {"bpm": bpm}
313
314 def play_Track(self, track, channel=1, bpm=120):
315 """Play a Track object."""
316 self.notify_listeners(
317 self.MSG_PLAY_TRACK, {"track": track, "channel": channel, "bpm": bpm}
318 )
319 for bar in track:
320 res = self.play_Bar(bar, channel, bpm)
321 if res != {}:
322 bpm = res["bpm"]
323 else:
324 return {}
325 return {"bpm": bpm}
326
327 def play_Tracks(self, tracks, channels, bpm=120):
328 """Play a list of Tracks.

Callers 4

play_TrackFunction · 0.45
write_CompositionFunction · 0.45
test_trackMethod · 0.45

Calls 2

notify_listenersMethod · 0.95
play_BarMethod · 0.95

Tested by 2

test_trackMethod · 0.36