(self, msg)
Adds received mido.Message to the queue for capture.

    Args:
      msg: The incoming mido.Message object to add to the queue for capture. The
           time attribute is assumed to be pre-set with the wall time when the
           message was received.
    Raises:
      MidiHubError: When the received message has an empty time attribute.
Adds received mido.Message to the queue for capture.
Adds received mido . Message to the queue for capture .
def receive(self, msg):
    """Adds received mido.Message to the queue for capture.

    Args:
      msg: The incoming mido.Message object to add to the queue for capture. The
           time attribute is assumed to be pre-set with the wall time when the
           message was received.
    Raises:
      MidiHubError: When the received message has an empty time attribute.
    """
    if not msg.time:
      raise MidiHubError(
          'MidiCaptor received message with empty time attribute: %s' % msg)
    self._receive_queue.put(msg)
def receive ( self , msg ) : if not msg . time : raise MidiHubError ( 'MidiCaptor received message with empty time attribute: %s' % msg ) self . _receive_queue . put ( msg )