Format python files to align with PEP 8 (spacing, naming, exceptions, etc.) In this commit I changed the spacing from 2 spaces -> 4 spaces, since it's recommended by PEP 8 and also just looks better imo (lol). This was reverted in this commit I changed the except statements from just except to except Exception as e, to give the user a better error message, and also follow PEP 8. I also changed all the names from thisCase to this_case (which was reverted in this commit)
Various other improvements, like list comprehension, which is very optimized in CPython, and also is more clean and compact (imo). This is mainly in the format script.
Simplify some things.
Change from using ints to booleans since it's generally preferred.
Add some things in README (like you can try "python -m pip install ..." if pip doesn't work, and that you have to make sure to check "Add Python to PATH", etc.)
Change some of the printing for better clarity.
Make nbs_genereate_schematic able to run the format script if your code is not already formatted (the format script still works by itself). Also wrote that you don't have to use format in README. This was reverted here.
Fix a bug when removing the higher notes, which was caused by setting both octaves equal to each other, so there where to lists with all the notes that got added together (see the code if this sounds confusing lol)
Fix typos in README
I tested the code, and it gave the same result as the original (except after the bug fix of course)
It should work but if someone else could try it that would be cool.
Also seems like the schematic doesn't output the same thing every time (or it depends on the file location), since not even the original script generated the same things twice.
If there are any bugs just tell me and I'll try to fix them.
Also, if there for example is more of the PEP 8 stuff I should remove I can do that.
Various Improvements
I tested the code, and it gave the same result as the original (except after the bug fix of course) It should work but if someone else could try it that would be cool. Also seems like the schematic doesn't output the same thing every time (or it depends on the file location), since not even the original script generated the same things twice.
If there are any bugs just tell me and I'll try to fix them.
Also, if there for example is more of the PEP 8 stuff I should remove I can do that.