this allows to test how the midi synthesizer is working, without access to hardware. Run `micropython-coverage midi2wav.py` and it will create `tune.wav` as an output.
8 lines
114 B
Python
8 lines
114 B
Python
import struct
|
|
|
|
|
|
def byteswap(data, sampwidth):
|
|
print(data)
|
|
raise
|
|
ch = "I" if sampwidth == 16 else "H"
|