(self)
return mido.Message(self._type, **self._kwargs)
Returns a message using the signal's specifications, if possible.
Returns a message using the signal's specifications, if possible.
Returns a message using the signal s specifications if possible .
def to_message(self):
    """Returns a message using the signal's specifications, if possible."""
    if self._msg:
      return self._msg
    if not self._type:
      raise MidiHubError('Cannot build message if type is not inferrable.')
    return mido.Message(self._type, **self._kwargs)
def to_message ( self ) : if self . _msg : return self . _msg if not self . _type : raise MidiHubError ( 'Cannot build message if type is not inferrable.' ) return mido . Message ( self . _type , * * self . _kwargs )