Jump to content

Motherboard Beep Song

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
27 replies to this topic

#1
jonow

jonow

    Newbie

  • Members
  • Pip
  • 7 posts
Hi, I know NOTHING about C or C++. But I was wondering if someone could make a program for me. I want to make it to my motherboard beeps a song. I found a program that does it, you put in some values and it plays it. It is called BeepMaker forums.facepunchstudios.com/showthread.php?t=538628 You put in the value of a song at it plays it in beeps on your motherboard. So I was wondering if someone could make a simple executable that when ran would play Rick Astley’s Never Gonna Give You Up on the motherboard. I have the values: You put in the value of a song at it plays it in beeps on your motherboard. So I was wondering if someone could make a simple executable that when ran would play Rick Astley’s Never Gonna Give You Up on the motherboard. I have the values:
59/64/0;61/64/14;62/64/14;62/64/14;64/64/14;61/64/14;59/64/35;57/64/0;59/64/312;59/64/14;61/64/14;62/64/14;59/64/14;57/64/57;69/64/14;69/64/57;64/64/14;59/64/227;59/64/14;61/64/14;62/64/14;59/64/14;62/64/14;64/64/14;61/64/57;59/64/14;61/64/14;59/64/0;57/64/0;59/64/184;59/64/14;61/64/14;62/64/14;59/64/14;57/64/14;64/64/57;64/64/14;64/64/14;66/64/14;64/64/14;62/64/142;64/64/184;66/64/14;64/64/14;64/64/57;64/64/14;66/64/14;64/64/14;57/64/14;57/64/14;57/64/184;59/64/14;61/64/14;62/64/14;59/64/14;64/64/57;66/64/14;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;66/64/0;66/64/35;64/64/35;57/64/99;59/64/0;62/64/0;59/64/0;64/64/0;64/64/35;62/64/35;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/14;62/64/14;57/64/142;59/64/0;62/64/0;59/64/0;66/64/0;66/64/57;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;69/64/0;62/64/57;62/64/14;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/57;59/64/312;61/64/14;62/64/14;62/64/14;64/64/14;61/64/14;59/64/35;57/64/0;59/64/312;59/64/14;61/64/14;62/64/14;59/64/14;57/64/57;69/64/14;69/64/57;64/64/14;59/64/227;59/64/14;61/64/14;62/64/14;59/64/14;62/64/14;64/64/14;61/64/57;59/64/14;61/64/14;59/64/0;57/64/0;59/64/184;59/64/14;61/64/14;62/64/14;59/64/14;57/64/14;64/64/57;64/64/14;64/64/14;66/64/14;64/64/14;62/64/142;64/64/184;66/64/14;64/64/14;64/64/57;64/64/14;66/64/14;64/64/14;57/64/14;57/64/14;57/64/184;59/64/14;61/64/14;62/64/14;59/64/14;64/64/57;66/64/14;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;66/64/0;66/64/35;64/64/35;57/64/99;59/64/0;62/64/0;59/64/0;64/64/0;64/64/35;62/64/35;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/14;62/64/14;57/64/142;59/64/0;62/64/0;59/64/0;66/64/0;66/64/57;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;69/64/0;62/64/57;62/64/14;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/57;57/64/142;59/64/0;62/64/0;59/64/0;66/64/0;66/64/35;64/64/35;57/64/99;59/64/0;62/64/0;59/64/0;64/64/0;64/64/35;62/64/35;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/14;62/64/14;57/64/142;59/64/0;62/64/0;59/64/0;66/64/0;66/64/57;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;69/64/0;62/64/57;62/64/14;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/57;57/64/142;59/64/0;62/64/0;59/64/0;59/64/5518;59/64/14;61/64/14;62/64/14;62/64/14;64/64/14;61/64/14;59/64/0;57/64/0;59/64/0;57/64/0;59/64/269;59/64/14;59/64/14;61/64/14;62/64/14;59/64/14;57/64/14;57/64/14;69/64/14;69/64/14;69/64/14;64/64/14;59/64/184;59/64/14;59/64/14;61/64/14;62/64/14;59/64/14;62/64/14;64/64/14;61/64/14;61/64/14;59/64/14;59/64/0;61/64/0;59/64/0;57/64/0;59/64/142;59/64/14;59/64/14;61/64/14;62/64/14;59/64/14;57/64/14;64/64/14;64/64/14;64/64/14;64/64/14;66/64/14;64/64/14;62/64/99;64/64/184;66/64/14;64/64/14;64/64/57;64/64/14;66/64/14;64/64/14;57/64/14;57/64/14;57/64/184;59/64/14;61/64/14;62/64/14;59/64/14;64/64/57;66/64/14;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;66/64/0;66/64/35;64/64/35;57/64/99;59/64/0;62/64/0;59/64/0;64/64/0;64/64/35;62/64/35;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/14;62/64/14;57/64/142;59/64/0;62/64/0;59/64/0;66/64/0;66/64/57;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;69/64/0;62/64/57;62/64/14;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/57;66/64/227;66/64/35;64/64/35;57/64/99;59/64/0;62/64/0;59/64/0;64/64/0;64/64/35;62/64/35;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/14;62/64/14;57/64/142;59/64/0;62/64/0;59/64/0;66/64/0;66/64/57;64/64/14;57/64/99;59/64/0;62/64/0;59/64/0;69/64/0;62/64/57;62/64/14;61/64/35;59/64/0;57/64/14;59/64/0;62/64/0;59/64/0;62/64/0;64/64/57;61/64/14;59/64/35;57/64/0;57/64/57;64/64/14;62/64/57;57/64/142;59/64/0;62/64/0;59/64/0

If you could please make it and send it to me at jonow @ roadrunner.com. I do not know what you may want in return but I am skilled in Photoshop so if you need anything in return just tell me.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Is there a reason why you want to use the motherboard speaker as opposed to the normal speaker? There are plenty of programs out there that will let you write/play music already.

Is this something where you "need" the source code? If so, it smells suspiciously of a homework assignment. Does the language matter?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I know you can make the bell sound by doing this:

printf("\a");

Perhaps that will help you creating your program.

#4
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Its fairly simple (I'm not doing your work for you) to output a specific frequency to your sound card via DMA. GOOGLE!

#5
jonow

jonow

    Newbie

  • Members
  • Pip
  • 7 posts
I do not need the source code, it does not matter what language it is in. And it is not Homework. The reason i want it is because it is cool. And if someone wont make it maybe someone can give me an idea of the code needed so i can bring it to one of my friends that knows more about C but not enough to do this.

Thank you for any help you can give me.

#6
birinight

birinight

    Learning Programmer

  • Members
  • PipPipPip
  • 36 posts

Quote

I do not need the source code, it does not matter what language it is in.

ZX Spectrum 48k, 128k

Quote

10 BEEP 1,0: BEEP 1,2:BEEP .5,3
20 BEEP.5,2: BEEP 1,0

Sorry. I couldn't held it... :laugh:

#7
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
I may do this, just because it'd be pretty funny to rick roll people with the PC Speaker.

Actually, OP send me a PM.

#8
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,713 posts
If you're using Windows you can just use the Beep() function, passing in the frequency and duration.

By the way, why are the tones in triplets?

#9
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,713 posts
EDIT: I figured it out. Here's the EXE with the source code. Works only on Windows.

Attached Files


Edited by dargueta, 26 November 2008 - 10:27 PM.


#10
jonow

jonow

    Newbie

  • Members
  • Pip
  • 7 posts
I know nothing about how the code works but it should work on any motherboard that has 1 speaker. Also if you could just give me the code or something like that it would be ok, but better if you made the program.

#11
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,713 posts
EDIT: Nevermind, there was just a long pause in the song that I took to be it hanging.

I just noticed that my program hangs at the end of a song because there is no terminating semicolon at the end of a file. This can easily be remedied by putting a semicolon there.

#12
jonow

jonow

    Newbie

  • Members
  • Pip
  • 7 posts
Um... How do i get it to work I ran the exe and for the source file i put the main.c file and i chose 2 for text based and then said now playing: (the file location and name) but nothing happened