michthom / MIDI-to-CNC

Python script to "play" a *.SMF/*.mid file on a 3-axis CNC machine
GNU General Public License v2.0
50 stars 42 forks source link

Fixed typeerror-unsupported-operand #3

Closed aplavins closed 7 years ago

aplavins commented 7 years ago

I had an error:

Traceback (most recent call last):
  File "D:\Downloads\MIDI-to-CNC-master\mid2cnc.py", line 572, in <module>
    main(sys.argv)
  File "D:\Downloads\MIDI-to-CNC-master\mid2cnc.py", line 490, in main
    freq_xyz[j] = pow(2.0, (nownote-69 + args.transpose[j])/12.0)*440.0
TypeError: unsupported operand type(s) for +: 'int' and 'str'

fixed by casting to int.