Skip to content

Instantly share code, notes, and snippets.

View RubinOrlando's full-sized avatar
💭
I may be slow to respond.

Ro RubinOrlando

💭
I may be slow to respond.
View GitHub Profile
@RubinOrlando
RubinOrlando / musicalTorrents.py
Created June 10, 2021 16:47 — forked from dbr/musicalTorrents.py
Encode file as MIDI
#!/usr/bin/env python2.6
# Converts an arbitrary file to MIDI. Obviously.
# Note the output files can be.. long (a 25KiB file becomes about 10 hours),
# and may cause players to lockup while opening (the aforementioned 10 hour
# file took Quicktime Player 7 about 5-10 seconds to open)
import smidi
def fileToMidi(input_fname, output_fname):