pysynth/wrappers/midi/alsa/base.py
def run(self):

        """
        Continuosly pull MIDI events from ALSA and handle them.

        In this case, we just print them.
        """

        while True:

            # Get a value from ALSA:

            val = self.midi_alsa.midi_read()

            # Convert it into a MIDI event:

            event = ALSAEvent.from_address(val)

            if event.type not in type_map.keys():

                # Junk event, let's continue

                continue

            # Lets decode it using our type_map:

            pack = type_map[event.type].from_object(event)

            # Send it along to the decoder:

            self.decoder.decode(pack)

        Continuosly pull MIDI events from ALSA and handle them.

        In this case, we just print them.
        
Continuosly pull MIDI events from ALSA and handle them.
In this case, we just print them.
Continuosly pull MIDI events from ALSA and handle them . In this case we just print them .
def run(self):
        while True:
            val = self.midi_alsa.midi_read()
            event = ALSAEvent.from_address(val)
            if event.type not in type_map.keys():
                continue
            pack = type_map[event.type].from_object(event)
            self.decoder.decode(pack)
def run ( self ) : while True : val = self . midi_alsa . midi_read ( ) event = ALSAEvent . from_address ( val ) if event . type not in type_map . keys ( ) : continue pack = type_map [ event . type ] . from_object ( event ) self . decoder . decode ( pack )
Continuosly pull MIDI events from ALSA and handle them.
Continuosly pull MIDI events from ALSA and handle them .
"""
        Continuosly pull MIDI events from ALSA and handle them.

        In this case, we just print them.
        """ # Get a value from ALSA: # Convert it into a MIDI event: # Junk event, let's continue # Lets decode it using our type_map: # Send it along to the decoder:
self