(self, pitch, channel=1, v=60)
| 91 | ) |
| 92 | |
| 93 | def rawNoteOn(self, pitch, channel=1, v=60): |
| 94 | midimsg = 0x90 + ((pitch) * 0x100) + (v * 0x10000) + channel |
| 95 | mm = c_int(midimsg) |
| 96 | rc = self.winmm.midiOutShortMsg(self.hmidi, mm) |
| 97 | if rc != 0: |
| 98 | raise Win32MidiException( |
| 99 | "Error sending event, " |
| 100 | + self.midiOutShortErrorCodes.get(rc, "Unknown error.") |
| 101 | ) |
| 102 | |
| 103 | def rawNoteOff(self, pitch, channel=1): |
| 104 | midimsg = 0x80 + ((pitch) * 0x100) + channel |
no test coverage detected