Skip to content

Instantly share code, notes, and snippets.

@ArtBIT
Last active December 11, 2024 12:49
Show Gist options
  • Save ArtBIT/cfb030c0791b42330381acce33f82ca0 to your computer and use it in GitHub Desktop.
Save ArtBIT/cfb030c0791b42330381acce33f82ca0 to your computer and use it in GitHub Desktop.
A collection of GRUB init tunes

Super Mario

GRUB_INIT_TUNE="1000 334 1 334 1 0 1 334 1 0 1 261 1 334 1 0 1 392 2 0 4 196 2"

Demo

Super Mario - Coin

GRUB_INIT_TUNE="600 988 1 1319 8"

Demo

Super Mario - Mushroom

GRUB_INIT_TUNE="1750 523 1 392 1 523 1 659 1 784 1 1047 1 784 1 415 1 523 1 622 1 831 1 622 1 831 1 1046 1 1244 1 1661 1 1244 1 466 1 587 1 698 1 932 1 1195 1 1397 1 1865 1 1397 1"

Demo

Close Encounters

GRUB_INIT_TUNE="220 900 2 1000 2 800 2 400 2 600 3"

Demo

Für Elise

GRUB_INIT_TUNE="480 420 1 400 1 420 1 400 1 420 1 315 1 370 1 335 1 282 3 180 1 215 1 282 1 315 3 213 1 262 1 315 1 335 3 213 1 420 1 400 1 420 1 400 1 420 1 315 1 370 1 335 1 282 3 180 1 215 1 282 1 315 3 213 1 330 1 315 1 282 3"

Demo

Star Wars: Imperial March

GRUB_INIT_TUNE="480 440 4 440 4 440 4 349 3 523 1 440 4 349 3 523 1 440 8 659 4 659 4 659 4 698 3 523 1 415 4 349 3 523 1 440 8"

Demo

Wolfenstein 3D

GRUB_INIT_TUNE="300 131 1 196 1 196 1 196 1 294 1 196 1 294 1 196 1 131 1"

Demo

Mall (Nothing Special)

GRUB_INIT_TUNE="180 440 1 554 1 659 1"

Demo

My Little Pony

GRUB_INIT_TUNE="2400 587 18 554 4 587 8 659 12 587 16 0 10 587 4 659 4 740 8 587 4 784 12 740 8 659 8 587 4 740 20 587 40"

Demo

@beomusxyz
Copy link

beomusxyz commented Mar 19, 2022

Here are some fun ones

The Lick:

900 580 2 650 2 685 2 770 2 580 1 650 3 510 2 580 6

TempleOS Risen

960 587 3 659 3 698 6 698 6 659 2 659 2 698 2 587 6 523 3 587 3 587 3 659 3 523 2 783 2 698 2 587 4

Still DRE:

1100 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 523 1 660 1 880 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2 494 1 660 1 785 1 0 2

Mystery one that i didn't make but sounds sick:

720 440 2 440 2 440 2 932 2 880 2 784 2 440 2 440 2 440 2 1047 2 880 2 932 2 440 2 440 2 440 2 698 2 587 2 554 2 659 2 698 2 659 2 784 2 698 2 659 2 440 2 440 2 440 2 1109 1 1175 1 1109 2 880 2 440 2 440 2 440 2 1397 2 1318 2 1175 2 1109 2 1175 2 932 2 1109 2 880 2 932 2 784 2 880 2 622 2 784 2 622 2 587 2

@GameParrot
Copy link

Star Wars main theme - 2400 196 40 293 40 261 10 246 10 220 10 392 40 293 20 261 10 246 10 220 10 392 40 293 20 261 10 246 10 261 10 220 40

@THEBIGMISHA
Copy link

My start sound

60000 900 70 0 50 900 70 0 380 1024 20 0 70 1152 20 0 70 1280 20 0 70 1024 20 0 70

@MasterGeekMX
Copy link

MasterGeekMX commented Dec 26, 2022

Mike Oldfield's Tubular Bells (The Exorcist Theme Song)

300 328 1 440 1 328 1 494 1 328 1 390 1 440 1

@FaceHiddenInsideTheDark
Copy link

FaceHiddenInsideTheDark commented Dec 28, 2022

Legend of Zelda - Great Fairy's Fountain DEMO

1999 1760 5 0 1 1175 5 0 1 932 5 0 1 784 5 0 1 1568 5 0 1 1175 5 0 1 932 5 0 1 784 5 0 1 1397 5 0 1 1175 5 0 1 932 5 0 1 784 5 0 1 1568 5 0 1 1175 5 0 1 932 5 0 1 784 5 0 1 1568 5 0 1 1047 5 0 1 880 5 0 1 698 5 0 1 1397 5 0 1 1047 5 0 1 880 5 0 1 698 5 0 1 1319 5 0 1 1047 5 0 1 880 5 0 1 698 5 0 1 1397 5 0 1 1047 5 0 1 880 5 0 1 698 5 0 1 1397 5 0 1 932 5 0 1 784 5 0 1 659 5 0 1 1319 5 0 1 932 5 0 1 784 5 0 1 659 5 0 1 1245 5 0 1 932 5 0 1 784 5 0 1 659 5 0 1 1319 5 0 1 932 5 0 1 784 5 0 1 659 5 0 1 1319 5 0 1 880 5 0 1 698 5 0 1 587 5 0 1 1175 5 0 1 880 5 0 1 698 5 0 1 587 5 0 1 1109 5 0 1 880 5 0 1 698 5 0 1 587 5 0 1 1175 5 0 1 880 5 0 1 698 5 0 1 587 5 0 1

@ElykDeer
Copy link

Legend of Zelda - Secret Reveal (demo)

1000 784 2 740 2 622 2 440 2 415 2 659 2 831 2 1046 5

@countingpine
Copy link

pfSense chimes (adapted from beep.sh)

Startup:
240 500 1 400 1 600 1 800 1 800 1

Shutdown:
240 600 1 800 1 500 1 400 1 400 1

(The last two identical notes may get merged together.)

@Gawrion
Copy link

Gawrion commented Feb 17, 2023

My custom melody. Few years ago i invented it and started to sing it to my children. Now made it for GRUB:
2500 415 2 0 2 415 2 0 2 415 2 0 2 466 2 0 2 523 2 0 2 523 2 0 2 523 2 0 2 415 2 0 2 466 2 0 2 466 2 0 2 466 2 0 2 523 2 0 2 415 2 0 2 311 2 0 2 415 4 0 4 415 2 0 2 415 2 0 2 415 2 0 2 466 2 0 2 523 2 0 2 523 2 0 2 523 2 0 2 415 2 0 2 622 4 0 2 554 2 523 2 0 2 466 2 0 2 415 4 0 12 830 2 0 2 830 2 0 2 698 4 0 4 622 2 0 2 622 2 0 2 523 4 0 4 622 4 0 2 554 2 523 2 0 2 466 2 0 2 415 2 0 2 523 2 0 2 622 4 0 4 830 2 0 2 830 2 0 2 698 4 0 4 622 2 0 2 622 2 0 2 523 4 0 4 622 4 0 2 554 2 523 2 0 2 466 2 0 2 415 8

click to play

@demperor-music
Copy link

demperor-music commented Feb 25, 2023

DOOM E1M1
400 164 1 164 1 330 2 164 1 294 2 164 1 262 2 164 1 233 2 164 1 247 1 262 1 164 1 164 1 330 2 164 1 294 2 164 1 262 2 164 1 233 6

@okh-mzny
Copy link

Classic Megaman menu sound

640 440 1 330 1 277 1 880 1

Click to hear (Grub tune tester)

@ThatOneCalculator
Copy link

ThatOneCalculator commented Apr 11, 2023

Rude Buster (stolen from @hatkidchan@mastodon.astrr.ru)

32000 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 554 205 370 68 0 68 415 68 0 68 440 68 415 68 0 68 330 68 277 342 0 205 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 740 137 0 68 830 68 0 68 660 68 0 68 740 617 0 205 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 554 205 370 68 0 68 415 68 0 68 440 68 415 68 0 68 330 68 277 342 0 205 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 740 137 0 68 830 68 0 68 660 68 0 68 740 617 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 343 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 831 343 0 206 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 137 0 68 415 137 440 137 0 68 494 68 0 68 587 68 0 68 554 617 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 343 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 830 343 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 137 0 68 415 137 440 205 415 68 0 68 440 68 0 68 415 342 370 137 350 137 370 1097 0 3154 185 68 207 68 220 206 0 205 185 68 220 68 247 206 0 205 220 68 246 68 277 137 330 68 247 68 277 34 247 34 220 68 0 68 247 68 0 68 220 68 0 68 330 68 0 68 294 68 0 68 277 206 0 137 370 68 0 68 277 137 246 68 277 34 247 34 220 137 247 137 220 68 247 343 0 205 185 137 184 68 0 68 185 68 184 68 370 68 185 68 0 68 330 68 277 68 220 68 415 68 330 68 277 68 247 68 329 68 494 68 392 68 277 68 392 68 330 68 277 68 247 68 330 68 370 68 277 68 220 68 415 68 330 68 277 68 220 68 330 68 440 68 415 68 330 68 277 68 247 68 220 68 247 68 311 68 370 68 185 68 277 68 247 68 185 68 277 68 330 68 370 68 185 68 277 68 247 68 185 68 247 68 330 68 185 68 0 68 370 68 277 68 185 68 0 68 185 549 0 343 147 68 0 68 220 68 0 68 208 34 220 68 208 34 0 68 185 68 175 137 0 68 208 68 220 137 0 206 277 68 0 68 330 68 0 68 370 68 277 68 247 68 0 68 220 137 0 68 185 68 147 68 123 68 208 68 165 68 123 68 208 68 220 68 247 68 208 68 175 68 330 68 208 68 294 68 277 68 247 68 277 206 330 206 370 549 0 343 139 68 185 68 220 68 247 68 277 137 247 68 0 137 247 68 0 68 330 68 0 68 277 68 220 68 185 68 277 68 0 68 330 68 0 68 247 34 277 68 247 343 220 68 208 68 185 68 147 68 123 68 220 68 185 68 147 68 185 68 147 68 185 68 220 68 277 68 247 68 208 68 349 68 277 68 208 68 277 68 349 68 185 68 0 68 185 68 370 68 0 68 185 68 0 68 185 480

@jtagcat
Copy link

jtagcat commented Apr 13, 2023

Warning: using a 73-second GRUB TUNE makes the computer boot 73 seconds longer.

@ThatOneCalculator
Copy link

I'm aware, it's very much a novelty

@Guusggg
Copy link

Guusggg commented Apr 22, 2023

Hi, my friends requested the Mission Impossible theme song, and I liked a challenge in music.

Here's the demo.

950 

392 3 0 6 392 3 0 6 
466 3 0 3 
523 3 0 3 
392 3 0 6 392 3 0 6 
349 3 0 3 
369 3 0 3 
392 3 0 6 392 3 0 6 
466 3 0 3 
523 3 0 3 
392 3 0 6 392 3 0 6 
349 3 0 3 
369 3 0 3 

196 3 0 6 196 3 0 6 
233 3 0 3 
261 3 0 3 
196 3 0 6 196 3 0 6 
174 3 0 3 
185 3 0 3 
196 3 0 6 196 3 0 6 
233 3 0 3 
261 3 0 3 
196 3 0 6 196 3 0 6 
174 3 0 3 
185 3 0 3

Non-formatted code for in your GRUB configuration:
950 392 3 0 6 392 3 0 6 466 3 0 3 523 3 0 3 392 3 0 6 392 3 0 6 349 3 0 3 369 3 0 3 392 3 0 6 392 3 0 6 466 3 0 3 523 3 0 3 392 3 0 6 392 3 0 6 349 3 0 3 369 3 0 3 196 3 0 6 196 3 0 6 233 3 0 3 261 3 0 3 196 3 0 6 196 3 0 6 174 3 0 3 185 3 0 3 196 3 0 6 196 3 0 6 233 3 0 3 261 3 0 3 196 3 0 6 196 3 0 6 174 3 0 3 185 3 0 3

@JPDucky
Copy link

JPDucky commented May 4, 2023

Jurassic Park III (Kirby's Satellite phone ringtone): 450 784 2 660 2 698 1 660 1 587 2 523 2 784 2 1046 2 523 2

@sirkhancision
Copy link

sirkhancision commented May 24, 2023

I've come up with a tool (still needs some tweaking) to generate the proper code for a GRUB init tune, through manual input of the notes. I have these, generated through it:

Devils Never Cry (Devil May Cry 3)
Grandma (NieR)
The tune I use :p

@UrkiMimi
Copy link

UrkiMimi commented Jun 12, 2023

GRUB Init tune inspired by a song from Team Grimoire
210 329 2 391 2 311 1 329 1 440 1 493 1 440 2 391 2 311 2 369 2 329 4

@PicelBoi
Copy link

PicelBoi commented Aug 20, 2023

Green Greens (Intro) - from Kirby’s Dream Land.
For a project.
400 392 1 392 1 0 1 392 1 392 1 0 1 392 1 0 1 392 1 0 1 1174 1 1174 1 1174 1
Feel free to correct it!

@COUPON4Vitamins
Copy link

COUPON4Vitamins commented Oct 1, 2023

Apidya level 1-2 (first notes only):
72000 415 240 415 240 622 240 0 240 415 240 622 240 0 240 415 240 622 1200 415 240 415 123 0 117 622 110 698 130 698 240 587 480 466 720 523 1920

@carlos-spicy-wiener
Copy link

carlos-spicy-wiener commented Oct 17, 2023

Just finalised a tune from FFVII, 15s from "Bombing Mission". Thanks to Lukas Fink for his great tool.

51840 52 128 196 128 110 128 117 128 392 96 110 32 392 96 98 32 392 96 73 32 349 96 78 32 349 96 104 32 349 96 98 32 311 96 69 32 311 96 139 32 311 96 69 32 294 128 110 128 117 128 110 128 98 128 73 128 78 128 104 128 98 128 73 128 78 128 87 128 311 128 110 128 117 128 294 96 110 32 349 96 98 32 294 96 73 32 294 128 104 128 98 128 277 128 139 128 69 128 98 128 110 128 117 128 294 96 110 32 311 96 98 32 262 96 73 32 294 128 104 128 98 128 73 128 78 128 87 128 196 128 110 128 117 128 392 96 110 32 392 96 98 32 392 96 73 32 349 96 78 32 349 96 104 32 349 96 98 32 311 96 69 32 311 96 139 32 311 96 69 32 294 128 110 128 117 128 110 128 98 128 73 128 78 128 104 128 98 128 277 128 78 128 87 128 98 128 110 128 117 128 294 96 110 32 349 96 98 32 294 96 73 32 294 128 104 128 98 128 69 128 139 128 69 32 659 48 740 48 98 128 110 128 117 32 659 48 740 48 294 96 110 32 311 96 98 32 262 32 659 48 740 48 294 128 104 128 98 32 659 48 740 48 73 128

@cxbignekoc
Copy link

Hi
some tunes i do :)

@dhouck
Copy link

dhouck commented Nov 6, 2023

As a programming exercise (I was learning the language a year and a half ago and have not reviewed the code more recently; I make no promises about the code quality) I made a tool to convert Lilypond notation into Grub beep code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5d90dfae99efdfd1529c335140ecb110

It uses hardcoded notes but anyone who knows Rust could probably turn it into something that takes an input relatively easily.

The thing I hardcoded into the above link produces

1356 0 36 261 3 293 3 369 3 293 3 440 8 0 1 440 8 0 1 391 17 0 1 261 3 293 3 369 3 293 3 391 8 0 1 391 8 0 1 369 9 329 3 293 5 0 1 261 3 293 3 369 3 293 3 369 11 0 1 391 5 0 1 329 9 293 3 261 5 0 1 261 5 0 1 261 5 0 1 391 11 0 1 369 23 0 1 261 3 293 3 369 3 293 3 440 8 0 1 440 8 0 1 391 17 0 1 261 3 293 3 369 3 293 3 523 11 0 1 329 5 0 1 369 9 329 3 293 5 0 1 261 3 293 3 369 3 293 3 369 11 0 1 391 5 0 1 329 9 293 3 261 11 0 1 261 5 0 1 391 11 0 1 369 23 0 1 0 12

which Iʼm surprised nobody listed before.

Other things Iʼve tried (Westminster chimes, Still Alive) didnʼt work that well, but this did.

Someone else came up with shave and a haircut

1440 523 4 392 2 0 1 392 2 440 4 392 4 0 4 494 4 0 1 523 4

not using my tool.

@COUPON4Vitamins
Copy link

@dhouck rickrolling on GRUB is a new low LOL 🤣

@denilsonsa
Copy link

denilsonsa commented Nov 20, 2023

So many examples here… Here's some curation for very short tunes, roughly shorted by length:

@EmDash00
Copy link

EmDash00 commented Jan 1, 2024

Rude Buster (stolen from @hatkidchan@mastodon.astrr.ru)

32000 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 554 205 370 68 0 68 415 68 0 68 440 68 415 68 0 68 330 68 277 342 0 205 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 740 137 0 68 830 68 0 68 660 68 0 68 740 617 0 205 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 554 205 370 68 0 68 415 68 0 68 440 68 415 68 0 68 330 68 277 342 0 205 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 740 137 0 68 830 68 0 68 660 68 0 68 740 617 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 343 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 831 343 0 206 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 137 0 68 415 137 440 137 0 68 494 68 0 68 587 68 0 68 554 617 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 343 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 830 343 0 205 740 68 660 68 587 68 554 68 494 68 554 137 0 68 370 137 0 68 415 137 440 205 415 68 0 68 440 68 0 68 415 342 370 137 350 137 370 1097 0 3154 185 68 207 68 220 206 0 205 185 68 220 68 247 206 0 205 220 68 246 68 277 137 330 68 247 68 277 34 247 34 220 68 0 68 247 68 0 68 220 68 0 68 330 68 0 68 294 68 0 68 277 206 0 137 370 68 0 68 277 137 246 68 277 34 247 34 220 137 247 137 220 68 247 343 0 205 185 137 184 68 0 68 185 68 184 68 370 68 185 68 0 68 330 68 277 68 220 68 415 68 330 68 277 68 247 68 329 68 494 68 392 68 277 68 392 68 330 68 277 68 247 68 330 68 370 68 277 68 220 68 415 68 330 68 277 68 220 68 330 68 440 68 415 68 330 68 277 68 247 68 220 68 247 68 311 68 370 68 185 68 277 68 247 68 185 68 277 68 330 68 370 68 185 68 277 68 247 68 185 68 247 68 330 68 185 68 0 68 370 68 277 68 185 68 0 68 185 549 0 343 147 68 0 68 220 68 0 68 208 34 220 68 208 34 0 68 185 68 175 137 0 68 208 68 220 137 0 206 277 68 0 68 330 68 0 68 370 68 277 68 247 68 0 68 220 137 0 68 185 68 147 68 123 68 208 68 165 68 123 68 208 68 220 68 247 68 208 68 175 68 330 68 208 68 294 68 277 68 247 68 277 206 330 206 370 549 0 343 139 68 185 68 220 68 247 68 277 137 247 68 0 137 247 68 0 68 330 68 0 68 277 68 220 68 185 68 277 68 0 68 330 68 0 68 247 34 277 68 247 343 220 68 208 68 185 68 147 68 123 68 220 68 185 68 147 68 185 68 147 68 185 68 220 68 277 68 247 68 208 68 349 68 277 68 208 68 277 68 349 68 185 68 0 68 185 68 370 68 0 68 185 68 0 68 185 480

Abbreviated version.

32000 277 68 370 68 440 68 493 68 554 68 0 68 494 68 0 68 494 68 0 68 659 205 554 205 370 68 0 68 415 68 0 68 440 68 415 68 0 68 330 68 277 342

@amsyarzero
Copy link

amsyarzero commented Feb 3, 2024

Kessoku Band - Seishun Complex opening riff:
480 587 1 524 1 587 1 880 1 0 1 587 1 0 1 524 2 587 1 0 1 698 1 659 1 587 1 524 1 440 1

Happy to contribute a song I like. Speaking about contributing, how do I obtain custom urls like the demo ones linked above?

EDIT: To test it out, here's the link. Thanks @ArtBIT for showing me how to link a custom tune!

@wavapps
Copy link

wavapps commented Feb 17, 2024

I had NO idea this was even a THING!!! You guys did some awesome work here> Now I need to do some of my own.

@ArtBIT
Copy link
Author

ArtBIT commented Feb 18, 2024

@amsyarzero Happy to contribute a song I like. Speaking about contributing, how do I obtain custom urls like the demo ones linked above?

Just prepend your GRUB_INIT_TUNE line with https://breadmaker.github.io/grub-tune-tester/?tune=

i.e. if your GRUB_INIT_TUNE line is

500 1000 1 2000 1

The URL for the player is

https://breadmaker.github.io/grub-tune-tester/?tune=500 1000 1 2000 1

And the markdown code is:

[Demo](<https://breadmaker.github.io/grub-tune-tester/?tune=500 1000 1 2000 1>)

NOTE: you have to enclose the URL in angle brackets because it contains spaces.

Alternatively, you can urlencode the tune parameter, and convert each space to %20 like so:

[Demo](https://breadmaker.github.io/grub-tune-tester/?tune=500%201000%201%202000%201)

B1T

@theoriginalgrasshopper
Copy link

The Buddy Holly lick
240 415 1 329 1 415 1 466 1 523 1 466 1 415 1 329 1 311 2

@Adam-S-Amir
Copy link

Jurassic Park III (Kirby's Satellite phone ringtone): 450 784 2 660 2 698 1 660 1 587 2 523 2 784 2 1046 2 523 2

this, this right here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment