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

Method rawNoteOff

mingus/midi/win32midi.py:103–111  ·  view source on GitHub ↗
(self, pitch, channel=1)

Source from the content-addressed store, hash-verified

101 )
102
103 def rawNoteOff(self, pitch, channel=1):
104 midimsg = 0x80 + ((pitch) * 0x100) + channel
105 mm = c_int(midimsg)
106 rc = self.winmm.midiOutShortMsg(self.hmidi, mm)
107 if rc != 0:
108 raise Win32MidiException(
109 "Error sending event, "
110 + self.midiOutShortErrorCodes.get(rc, "Unknown error.")
111 )
112
113 def programChange(self, program, channel=1):
114 p = program

Callers 1

stop_eventMethod · 0.80

Calls 1

Win32MidiExceptionClass · 0.85

Tested by

no test coverage detected