Skip to content

Instantly share code, notes, and snippets.

@Yjejuy
Yjejuy / mario_sound.py
Created April 25, 2024 09:37
Play a Super Mario theme music as a notification for jupyter notebook
def mario_sound():
from IPython.lib.display import Audio
import numpy as np
framerate = 4410
play_time_seconds = 1
C, G, E, p = 261.63, 392.00, 329.63, 0.0
mute_rate = 0.1
def generatenote(name, relative):