parameters: (self, note, velocity=None, channel = 0)
docstring: turns a midi note on.  Note must be off.
          Output.note_on(note, velocity=None, channel = 0)
  
          Turn a note on in the output stream.  The note must already
          be off for this to work correctly.
docstring_summary: turns a midi note on.  Note must be off.
          Output.note_on(note, velocity=None, channel = 0)
docstring_tokens: turns a midi note on . Note must be off . Output . note_on ( note velocity = None channel = 0 )
function: def note_on(self, note, velocity=None, channel = 0):
          """turns a midi note on.  Note must be off.
          Output.note_on(note, velocity=None, channel = 0)
  
          Turn a note on in the output stream.  The note must already
          be off for this to work correctly.
          """
          if velocity is None:
              velocity = 0
  
          if not (0 <= channel <= 15):
              raise ValueError("Channel not between 0 and 15.")
  
          self.write_short(0x90+channel, note, velocity)
function_tokens: def note_on ( self , note , velocity = None , channel = 0 ) : if velocity is None : velocity = 0 if not ( 0 <= channel <= 15 ) : raise ValueError ( "Channel not between 0 and 15." ) self . write_short ( 0x90 + channel , note , velocity )