This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Python Command and Character list | |
(from Learn Python the Hardway by Zed Shaw) | |
expanded from Lesson 22 | |
""" | |
#Character / Command What it's called What it does example example2 | |
pydoc <something> #pydoc gives you the manual page for something you want to know about in python pydoc sys | |
help() #help function use when running python to find help on an object | |
print() #print function prints to the console whatever is next print(“Hello World!”) print(1 + 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
A very simple and hacky Python3 script to convert 16-bit uncompressed WAV | |
files to MPC-3000 .SND files. | |
The output is modelled to copy the output of Wav2Snd | |
(http://www.mpc3000.com/wavsnd.htm) but this might be a bit more portable | |
to run on modern machines. |