Play the Notes in the NoteContainer nc.
(self, nc, channel=1, velocity=100)
| 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.""" |