Skip to content

Instantly share code, notes, and snippets.

View tree-s's full-sized avatar
👋

Michael J. MacMullin tree-s

👋
View GitHub Profile
@tree-s
tree-s / rtttl_to_casio.py
Created August 14, 2024 14:34 — forked from aynik/rtttl_to_casio.py
RTTTL folder to Casio buzzer sequence structs
#!/usr/bin/env python3
import sys
import os
from ptttl.parser import PTTTLParser
from math import log2
DURATION_ADJUSTMENT = 18
def parse_rtttl(file_path):
with open(file_path, 'r') as f: