This class implements behavior that is common to all MIDI sockets. You will not use this class directly in normal cases.
If you need to define a custom socket, inherit from this class.
Creates an instance of the socket subclass being invoked. Arguments are generic, and are forwarded to the subclass's init
method.
chan |
The messages' source. See ddwMIDI_Guide: Identifying MIDI channels. |
destination |
In general, sockets target another object: a VoicerMIDISocket addresses messages to a Voicer. This target object is the destination. |
... args |
Additional arguments are up to the subclass. |
The socket instance.
Remove the socket completely from the ddwMIDI hierarchy.
The socket's target object.
The socket's parent MIDIChannel object. From this, you can get information about the device and channel from which the socket is receiving messages.
Move the socket to the parent MIDIChannel's list of enabled sockets. The socket will then respond to incoming messages.
Move the socket to the parent MIDIChannel's list of disabled sockets. The socket will not respond to incoming messages, but it remains intact so that you can reenable it at any time.
Subclasses may implement clear
to keep the socket registered in the hierarchy, but become inactive.
Subclasses should implement init
for their specific requirements. Users should not call init
directly.