Skip to content

Instantly share code, notes, and snippets.

@anotherlab
Last active May 19, 2017 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anotherlab/43e59d75423bba23673c834ce1d1f9d1 to your computer and use it in GitHub Desktop.
Save anotherlab/43e59d75423bba23673c834ce1d1f9d1 to your computer and use it in GitHub Desktop.
The opening notes of "Smoke On The Water"
void Smoke()
{
int v = 50;
int duration = 500;
Beep(v, 2940, duration, 10);
Beep(v, 3490, duration, 10);
Beep(v, 3920, duration * 1.5, 150);
Beep(v, 2940, duration, 10);
Beep(v, 3490, duration, 10);
Beep(v, 4150, duration * 0.5, 10);
Beep(v, 3920, duration * 2, 150);
Beep(v, 2940, duration, 10);
Beep(v, 3490, duration, 10);
Beep(v, 3920, duration * 1.5, 150);
Beep(v, 3490, duration, 10);
Beep(v, 2940, duration * 2.5, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment