original_docstring: Finds a note to play and returns a MIDI message.
  
      Args:
        diastep: diatonic step
        semitone: half step
  
      
docstring: Finds a note to play and returns a MIDI message.
docstring_tokens: Finds a note to play and returns a MIDI message .
code: def msg(diastep, semitone):
      """Finds a note to play and returns a MIDI message.
  
      Args:
        diastep: diatonic step
        semitone: half step
  
      """
      note = (base_note + semitone + 12 * octave
              + notes[play + diastep + mode]) % 128
      playing_notes.append(note)
      return mido.Message('note_on', channel=channel, note=note)
code_tokens: def msg ( diastep , semitone ) : note = ( base_note + semitone + 12 * octave + notes [ play + diastep + mode ] ) % 128 playing_notes . append ( note ) return mido . Message ( 'note_on' , channel = channel , note = note )
short_docstring: Finds a note to play and returns a MIDI message.
short_docstring_tokens: Finds a note to play and returns a MIDI message .
comment: """Finds a note to play and returns a MIDI message.
  
      Args:
        diastep: diatonic step
        semitone: half step
  
      """