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

Method controllerChange

mingus/midi/win32midi.py:125–133  ·  view source on GitHub ↗
(self, controller, val, channel=1)

Source from the content-addressed store, hash-verified

123 )
124
125 def controllerChange(self, controller, val, channel=1):
126 midimsg = 0xB0 + ((controller) * 0x100) + (val * 0x10000) + channel
127 mm = c_int(midimsg)
128 rc = self.winmm.midiOutShortMsg(self.hmidi, mm)
129 if rc != 0:
130 raise Win32MidiException(
131 "Error sending event, "
132 + self.midiOutShortErrorCodes.get(rc, "Unknown error.")
133 )

Callers 1

cc_eventMethod · 0.80

Calls 1

Win32MidiExceptionClass · 0.85

Tested by

no test coverage detected