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

Method play_NoteContainer

mingus/midi/sequencer.py:184–194  ·  view source on GitHub ↗

Play the Notes in the NoteContainer nc.

(self, nc, channel=1, velocity=100)

Source from the content-addressed store, hash-verified

182 self.stop_Note(x, c)
183
184 def play_NoteContainer(self, nc, channel=1, velocity=100):
185 """Play the Notes in the NoteContainer nc."""
186 self.notify_listeners(
187 self.MSG_PLAY_NC, {"notes": nc, "channel": channel, "velocity": velocity}
188 )
189 if nc is None:
190 return True
191 for note in nc:
192 if not self.play_Note(note, channel, velocity):
193 return False
194 return True
195
196 def stop_NoteContainer(self, nc, channel=1):
197 """Stop playing the notes in NoteContainer nc."""

Callers 8

play_BarMethod · 0.95
play_BarsMethod · 0.95
play_NoteContainerFunction · 0.45
improviser.pyFile · 0.45
test_main_volumeMethod · 0.45
test_control_changeMethod · 0.45

Calls 2

notify_listenersMethod · 0.95
play_NoteMethod · 0.95

Tested by 3

test_main_volumeMethod · 0.36
test_control_changeMethod · 0.36