Stop a note on a channel. If Note.channel is set, it will take presedence over the channel argument given here.
(self, note, channel=1)
| 159 | return True |
| 160 | |
| 161 | def stop_Note(self, note, channel=1): |
| 162 | """Stop a note on a channel. |
| 163 | |
| 164 | If Note.channel is set, it will take presedence over the channel |
| 165 | argument given here. |
| 166 | """ |
| 167 | if hasattr(note, "channel"): |
| 168 | channel = note.channel |
| 169 | self.stop_event(int(note) + 12, int(channel)) |
| 170 | self.notify_listeners( |
| 171 | self.MSG_STOP_INT, {"channel": int(channel), "note": int(note) + 12} |
| 172 | ) |
| 173 | self.notify_listeners( |
| 174 | self.MSG_STOP_NOTE, {"channel": int(channel), "note": note} |
| 175 | ) |
| 176 | return True |
| 177 | |
| 178 | def stop_everything(self): |
| 179 | """Stop all the notes on all channels.""" |