Skip to content

Instantly share code, notes, and snippets.

View rizumu's full-sized avatar
:octocat:

Thomas Schreiber rizumu

:octocat:
View GitHub Profile
@rizumu
rizumu / wavtosnd.py
Created December 2, 2023 07:07 — forked from tattlemuss/wavtosnd.py
A very simple and hacky Python3 script to convert 16-bit uncompressed WAV files to MPC-3000 .SND files.
#!/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.
""" 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)