Need More Help with Python Synth

So I am trying to make a python synth program that takes the users inputs for notes in terms of letters and then makes a song file from it.


generatedSong=[]

while True:
  noteAndLength=input("Please pick a note or enter '1' if you would like to stop! ")
  if noteAndLength!='1':
    generatedSong.append(noteAndLength)
  else:
    break


pysynth.make_wav(generatedSong, fn="Awesome Song.wav")

This is my code that I am using. It keeps throwing me and error that I don’t understand:

Please pick a note or enter '1' if you would like to stop! c
Please pick a note or enter '1' if you would like to stop! 1
Writing to file Awesome Song.wav
[1/2]
Traceback (most recent call last):
  File "main.py", line 17, in <module>
    pysynth.make_wav(generatedSong, fn="Awesome Song.wav")
  File "/usr/local/lib/python3.6/site-packages/pysynth.py", line 148, in make_wav
    if x[1] < 0:
IndexError: string index out of range
python3 exited with code 1...

Does anyone know what this means?

A post was merged into an existing topic: Need help with Python Synth