ptwz / python_wizard

Command line LPC analysis tool to generate bitstreams for the Texas Instruments TMS5220 chip
MIT License
40 stars 13 forks source link

Improve message for stereo / multiple channels not supported #10

Closed kevinjwalters closed 4 years ago

kevinjwalters commented 4 years ago

It's not obvious what's going on with the current version if you accidentally feed it a stereo wave file:

Traceback (most recent call last):
  File "/path/venv/bin/python_wizard", line 71, in <module>
    b=Buffer.fromWave(args.filename)
  File "/path/venv/lib/python3.X/site-packages/pywizard/Buffer.py", line 32, in fromWave
    assert(max(d2) <= 1)

This issue may help others who search for what this output means.

kevinjwalters commented 4 years ago

Thanks for the fix, all python wizards will be most pleased.