Internal mobo speaker: how to make it output sound as a test
Internal mobo speaker: how to make it output sound as a test
1. I have a small Windows program that makes it output a single beep, but how to produce some test sound from within the Puppy Linux environment?
-
- Posts: 282
- Joined: Wed 16 Dec 2009, 21:38
- Location: Earth
Re: Internal mobo speaker: how to make it output sound as a test
I presume you mean an internal beeper-speaker, not a speaker connected to soundcard?Sylvander wrote:1. I have a small Windows program that makes it output a single beep, but how to produce some test sound from within the Puppy Linux environment?
Busybox has nice applet: "beep". It can generate a tone via internal speaker.
SUUM CUIQUE.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Re: Internal mobo speaker: how to make it output sound as a test
Sylvander wrote: how to produce some test sound?
Code: Select all
beep -f 800; beep -f 400 -r 3 ; beep -f 600 -r 3 -d 500 -l 100
Waiting for some nice melodies
Code: Select all
beep --help
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Internal mobo speaker: how to make it output sound as a test
Found some info:
Frequencies
and
Melodies
From the later: interesting code: just 1 beep
Frequencies
and
Melodies
From the later: interesting code: just 1 beep
Code: Select all
beep -f 261 -n -f 294 -n -f 330 -n -f 349 -n -f 392 -l 400 -n -f 392 -l 400 -n -f 440 -n -f 440 -n -f 440 -n -f 440 -n -f 392 -l 800 -n -f 440 -n -f 440 -n -f 440 -n -f 440 -n -f 392 -l 800 -n -f 349 -n -f 349 -n -f 349 -n -f 349 -n -f 330 -l 400 -n -f 330 -l 400 -n -f 294 -n -f 294 -n -f 294 -n -f 294 -n -f 261 -l 800
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
beep
NoSylvander wrote:Any chance of the German national anthem?
NoSylvander wrote: Would it be difficult to put on the desktop/pinboard an icon to play that?
NoSylvander wrote: Or add it to the startup folder?
Attached script has a very nice melody.
Code: Select all
#!/bin/sh
#Die Gedanken sind frei
#Thoughts are free
#origin: http://debianforum.de/forum/viewtopic.php?f=28&t=103335#p716628
#puppyfied (just made frequencies integers) by L18L on Apr 8, 2012
BEEP="/usr/bin/beep"
SPEED="150"
C4="-f262"
...
...
Rename it, (just remove .gz)
Make it executable
and move it for example onto the desktop. 1 click should play it.
You might link it to your Startup folder too
Have fun
- Attachments
-
- ThougtsAreFree.gz
- remove .gz
chmod +x
have fun - (1.11 KiB) Downloaded 157 times
I couldn't find the old thread I was looking for that told how to make Puppy play any kind of file as if it were an audio file.
I did find this post from 2005 of rcrsn51 playing around with the beep command.
I did find this post from 2005 of rcrsn51 playing around with the beep command.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
beep
Drag and drop to the desktop which is not the folder /root/Desktop but the desktop.Sylvander wrote:2. Don't know how to move it to to the desktop.
I have found a better place:Sylvander wrote:3. I know how to move or symlink it to the Startup folder, BUT...
Think maybe it's too long to bear listening to at each Startup.
Append
Code: Select all
# playing a melody while screen is black...
exec /root/my-applications/bin/ThougtsAreFree &
(/root/my-applications/bin/ThougtsAreFree is my path/script)
and the song is played in bootup process (while screen is black) and finished when X is ready.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
beep
Could this thread have been dated April 1st?Flash wrote:I couldn't find the old thread I was looking for that told how to make Puppy play any kind of file as if it were an audio file.
Thank you.Flash wrote:I did find this post from 2005 of rcrsn51 playing around with the beep command.
This was when puppy had no beep.
PANZERKOPF has showed us busybox´s beep which appears to be different from "beep-FULL" as frequencies must not be float but integer.
Anyone here who wants to use the keyboard as piano?
---
edited: found this:
https://github.com/binarypearl/beepbeep/
Re: beep
DONE.L18L wrote:...the song is played in bootup process (while screen is black) and finished when X is ready.
Handy that it finishes playing when the Puppy is ready for use.
But it may become annoying.
If it does, I'll undo it.
Re: beep
No, it definitely worked, I tried it. It was a simple combination of a few standard Puppy commands, which took the digital values of the data in a file and fed (piped?) them to something in Puppy which interpreted them as an audio file. You could play your whole hard disk drive with it if you wanted to. It's been several years, perhaps as many as 5 or more, and I can't remember who came up with it. MU perhaps.L18L wrote:Could this thread have been dated April 1st?Flash wrote:I couldn't find the old thread I was looking for that told how to make Puppy play any kind of file as if it were an audio file.
You could play your whole hard disk drive with it if you wanted to.
Code: Select all
cat /dev/sda1 > /dev/audio
(Warning - reversing the order would destroy the data on disk!)
Unfortunately, the "beep" command doesn't work on my laptop.
Does anyone know how to redirect "beep" output into a regular speakers?
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
beep
pc speaker module needs to be loaded.SFR wrote:...Unfortunately, the "beep" command doesn't work on my laptop.
Does anyone know how to redirect "beep" output into a regular speakers?
On my box:
You could try# lsmod | grep pcspkr
pcspkr 1195 0
#
Code: Select all
modprobe pcspkr
(I am talking about busybox beep in racy 53 on cheap VIA box)
----------------------
edit
Flash,
I think SFR has found your "program"
(reminds me of "beautiful noise coming up from the street")
Last edited by L18L on Mon 09 Apr 2012, 15:22, edited 1 time in total.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
beep
Puppians like GUIs
Here is one
Have fun
That is the example in the image below
Paste it into a console and press ENTER key to play it
Here is one
Have fun
Code: Select all
beep -f363 -l400 -d1000 -r3
Paste it into a console and press ENTER key to play it
- Attachments
-
- beep-gui.gz
- remove .gz
move to $HOME/my-applications/bin
chmod +x
have fun - (1.55 KiB) Downloaded 116 times
-
- beep.png
- beep
beep beep
beep - (4.78 KiB) Downloaded 297 times
Re: beep
Thanks, but still silence...L18L wrote:pc speaker module needs to be loaded.SFR wrote:...Unfortunately, the "beep" command doesn't work on my laptop.
Does anyone know how to redirect "beep" output into a regular speakers?
On my box:You could try# lsmod | grep pcspkr
pcspkr 1195 0
#and put this into rc.local if successful.Code: Select all
modprobe pcspkr
(I am talking about busybox beep in racy 53 on cheap VIA box)
Well, bad luck...nevermind...
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]
[b][color=green]Omnia mea mecum porto.[/color][/b]
From what I can gather, the compatibility of "beep" is pretty much
a random thing.
In the "old" days, mobos had a dedicated speaker output which used
the built in timer to generate the tones.
However newer mobos no longer seem to have this presumably so
the manufactures can save 2 or 3 cents.
Now on the newer HD audio sound cards, many chip sets have a "beep" emulator
so the "beep" will work but the problem comes in with AC97 (a.k.a. PCI Audio) sound cards.
Some support the redirection of "beep" whilst others don't.
This is not unique to Puppy or Linux and affects Windoze too.
a random thing.
In the "old" days, mobos had a dedicated speaker output which used
the built in timer to generate the tones.
However newer mobos no longer seem to have this presumably so
the manufactures can save 2 or 3 cents.
Now on the newer HD audio sound cards, many chip sets have a "beep" emulator
so the "beep" will work but the problem comes in with AC97 (a.k.a. PCI Audio) sound cards.
Some support the redirection of "beep" whilst others don't.
This is not unique to Puppy or Linux and affects Windoze too.