original_docstring: Voices a chorale with multiple phrases.
  
      Each phrase should be placed on a line in the input string, with the key at
      the beginning followed by space-separated roman numerals. For example,
  
       D: I vi I6 IV I64 V I
       D: I6 V64 I IV6 V I6 V
       D: I IV6 I6 IV I64 V7 vi
       D: I6 V43 I I6 ii65 V I
       A: I IV64 I vi ii6 V7 I
       b: iv6 i64 iv iio6 i64 V7 i
       A: IV IV V I6 ii V65 I
       D: IV6 I V65 I ii65 V7 I
      
docstring: Voices a chorale with multiple phrases.
  Each phrase should be placed on a line in the input string, with the key at
  the beginning followed by space-separated roman numerals. For example.
  
  
docstring_tokens: Voices a chorale with multiple phrases . Each phrase should be placed on a line in the input string with the key at the beginning followed by space - separated roman numerals . For example .
code: def generateChorale(chorale, lengths=None, ts="4/4"):
      """Voices a chorale with multiple phrases.
  
      Each phrase should be placed on a line in the input string, with the key at
      the beginning followed by space-separated roman numerals. For example,
  
       D: I vi I6 IV I64 V I
       D: I6 V64 I IV6 V I6 V
       D: I IV6 I6 IV I64 V7 vi
       D: I6 V43 I I6 ii65 V I
       A: I IV64 I vi ii6 V7 I
       b: iv6 i64 iv iio6 i64 V7 i
       A: IV IV V I6 ii V65 I
       D: IV6 I V65 I ii65 V7 I
      """
      lines = [line.strip().split(":") for line in chorale.split("\n") if line.strip()]
      progression = []
      for key, chords in lines:
          phrase, _ = voiceProgression(key, chords)
          progression.extend(phrase)
      score = generateScore(progression, lengths, ts)
      return score
code_tokens: def generateChorale ( chorale , lengths = None , ts = "4/4" ) : lines = [ line . strip ( ) . split ( ":" ) for line in chorale . split ( "\n" ) if line . strip ( ) ] progression = [ ] for key , chords in lines : phrase , _ = voiceProgression ( key , chords ) progression . extend ( phrase ) score = generateScore ( progression , lengths , ts ) return score
short_docstring: Voices a chorale with multiple phrases.
short_docstring_tokens: Voices a chorale with multiple phrases .
comment: """Voices a chorale with multiple phrases.
  
      Each phrase should be placed on a line in the input string, with the key at
      the beginning followed by space-separated roman numerals. For example,
  
       D: I vi I6 IV I64 V I
       D: I6 V64 I IV6 V I6 V
       D: I IV6 I6 IV I64 V7 vi
       D: I6 V43 I I6 ii65 V I
       A: I IV64 I vi ii6 V7 I
       b: iv6 i64 iv iio6 i64 V7 i
       A: IV IV V I6 ii V65 I
       D: IV6 I V65 I ii65 V7 I
      """