Play a Composition object.
(self, composition, channels=None, bpm=120)
| 362 | return {"bpm": bpm} |
| 363 | |
| 364 | def play_Composition(self, composition, channels=None, bpm=120): |
| 365 | """Play a Composition object.""" |
| 366 | self.notify_listeners( |
| 367 | self.MSG_PLAY_COMPOSITION, |
| 368 | {"composition": composition, "channels": channels, "bpm": bpm}, |
| 369 | ) |
| 370 | if channels == None: |
| 371 | channels = [x + 1 for x in range(len(composition.tracks))] |
| 372 | return self.play_Tracks(composition.tracks, channels, bpm) |
| 373 | |
| 374 | def modulation(self, channel, value): |
| 375 | """Set the modulation.""" |