Skip to content

Instantly share code, notes, and snippets.

@raphsilva
raphsilva / fix_midi.py
Last active October 11, 2024 11:09
Try this if you have errors opening a MIDI file, such as 'Corrupt MIDI file' or 'no MTrk header at start of track'. I have tried this on some old mobile phone generated MIDI (Sony Ericsson Music DJ).
# github.com/raphsilva, October 2020
# Have all your MIDI files in a 'files' folder and run this script from one level above that folder.
# The fixed files will be in the same 'files' folder, renamed with a '_f' suffix.
# MAKE A BACKUP OF YOUR FILES BEFORE RUNNING!
import os
for filepath in os.listdir('files'):
.status img.emojione,
.detailed-status img.emojione,
.notification img.emojione {
transition: 0.1s;
}
.status img.emojione:hover,
.detailed-status img.emojione:hover,
.notification img.emojione:hover {
transform: scale(4);