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

Method set_instrument

mingus/midi/sequencer.py:111–117  ·  view source on GitHub ↗

Set the channel to the instrument _instr_.

(self, channel, instr, bank=0)

Source from the content-addressed store, hash-verified

109 c.notify(msg_type, params)
110
111 def set_instrument(self, channel, instr, bank=0):
112 """Set the channel to the instrument _instr_."""
113 self.instr_event(channel, instr, bank)
114 self.notify_listeners(
115 self.MSG_INSTR,
116 {"channel": int(channel), "instr": int(instr), "bank": int(bank)},
117 )
118
119 def control_change(self, channel, control, value):
120 """Send a control change message.

Callers 3

play_TracksMethod · 0.95
set_instrumentFunction · 0.45
setUpMethod · 0.45

Calls 2

instr_eventMethod · 0.95
notify_listenersMethod · 0.95

Tested by 1

setUpMethod · 0.36