View previous topic :: View next topic |
Author |
Message |
someguy Guru
Joined: 10 Jul 2003 Posts: 433 Location: (-_-) .::OH_WELL::. (-_-)
|
Posted: Fri Sep 19, 2003 9:59 am Post subject: pc speaker |
|
|
i know this may be an odd question but i was wondering does anyone here know how to manipulate the pcm speaker on a motherboard to make music (scene music) just out of curiosity ive been wanting to do some stuff to scare some friends when they come in my room n stuff with it so i was wondering if anyone knew thanks peoples _________________ print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done |
|
Back to top |
|
|
Jeedo Apprentice
Joined: 02 May 2003 Posts: 202 Location: Akureyri, Iceland
|
Posted: Fri Sep 19, 2003 11:43 am Post subject: |
|
|
emerge beep
i once made a shell script that was a short song with that program, |
|
Back to top |
|
|
Freak_NL Apprentice
Joined: 27 Jun 2002 Posts: 261 Location: The Netherlands
|
Posted: Fri Sep 19, 2003 2:41 pm Post subject: |
|
|
I found some kernel-patch a while ago that creates an OSS soundcard driver for the pc-speaker. I managed to get it working too.
..that was on an outdoor LAN-party though, and the Gentoo computer that did this was used as a small webserver and heightsupport for a tentmate's TFT monitor. My 3 tentmates kindly requested me to either stop playing "Star Wars - Imperial March" thru the pc-speaker or observe the little Compaq flying in an attempt to determine its maximum range when tossed..
I killed mpg123 after that.. Google for it, it's out there somewhere, and it worked on a recent 2.4 kernel. |
|
Back to top |
|
|
someguy Guru
Joined: 10 Jul 2003 Posts: 433 Location: (-_-) .::OH_WELL::. (-_-)
|
Posted: Sat Sep 20, 2003 2:30 am Post subject: |
|
|
lol _________________ print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done |
|
Back to top |
|
|
someguy Guru
Joined: 10 Jul 2003 Posts: 433 Location: (-_-) .::OH_WELL::. (-_-)
|
Posted: Sat Sep 20, 2003 2:30 am Post subject: |
|
|
i do believe beep is what im looking for _________________ print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done |
|
Back to top |
|
|
someguy Guru
Joined: 10 Jul 2003 Posts: 433 Location: (-_-) .::OH_WELL::. (-_-)
|
Posted: Sat Sep 20, 2003 2:30 am Post subject: |
|
|
can you post that shell script ? _________________ print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done |
|
Back to top |
|
|
gsfgf Veteran
Joined: 08 May 2002 Posts: 1266
|
Posted: Sat Sep 20, 2003 3:48 am Post subject: |
|
|
a friend of mine writes these godawlful qbasic programs that play music through the system speaker. And he's gotten smart and stopped storing them on the network drive cso i can't delete them anymore. _________________ Aim:gsfgf0 |
|
Back to top |
|
|
iKiddo Guru
Joined: 27 Jun 2002 Posts: 341 Location: Europe?
|
Posted: Sat Sep 20, 2003 12:42 pm Post subject: |
|
|
gsfgf wrote: | a friend of mine writes these godawlful qbasic programs that play music through the system speaker. And he's gotten smart and stopped storing them on the network drive cso i can't delete them anymore. |
I remember there was one game I played on my 386 when I was younger. It was a wintersports game, can't remember the name, and all the music was played through the PC speaker. It sounded really good at the time. Also the Commander Keen games used the pc-speaker.
And last but not least, my grandpa used to have a program on his computer about 13 years ago which could do text-to-speech via the pc-speaker. I was really frightened of the thing |
|
Back to top |
|
|
Clete2 Guru
Joined: 09 Aug 2003 Posts: 530 Location: Bloomington, Illinois
|
Posted: Sat Sep 20, 2003 8:39 pm Post subject: |
|
|
Hey, I want the script too... looks cool ... |
|
Back to top |
|
|
Jeedo Apprentice
Joined: 02 May 2003 Posts: 202 Location: Akureyri, Iceland
|
Posted: Sat Sep 20, 2003 9:08 pm Post subject: |
|
|
He're is the scipt
Code: |
#! /bin/sh
beep -f 500 -l 700
beep -f 480 -l 400
beep -f 470 -l 250
beep -f 530 -l 300 -D 100
beep -f 500 -l 300 -D 100
beep -f 500 -l 300
beep -f 400 -l 600
beep -f 300 -l 500
beep -f 350 -l 700
beep -f 250 -l 600
|
It's a attempt at the imperial march but since i have no tone ear it sounds crappy. |
|
Back to top |
|
|
Clete2 Guru
Joined: 09 Aug 2003 Posts: 530 Location: Bloomington, Illinois
|
Posted: Sat Sep 20, 2003 10:06 pm Post subject: |
|
|
... I did a little one where it went from a low pitch to a high one with a while()... (PHP) |
|
Back to top |
|
|
someguy Guru
Joined: 10 Jul 2003 Posts: 433 Location: (-_-) .::OH_WELL::. (-_-)
|
Posted: Sun Sep 21, 2003 5:40 am Post subject: |
|
|
haha thats pimp _________________ print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done |
|
Back to top |
|
|
|