| Author |
Message |
Sylvander
Joined: 15 Dec 2008 Posts: 2857 Location: West Lothian, Scotland, UK
|
Posted: Sat 07 Apr 2012, 11:02 Post subject:
Internal mobo speaker: how to make it output sound as a test Subject description: Using Puppy Linux |
|
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?
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9853 Location: Arizona USA
|
Posted: Sat 07 Apr 2012, 15:32 Post subject:
|
|
My suggestion would be to first turn on everything you can find in Menu -> Multimedia -> Retrovol and turn them all the way up. Then, if you click the Setup icon on your desktop and choose Setup Alsa sound, at the end it will play Puppy's 2 barks.
|
|
Back to top
|
|
 |
PANZERKOPF
Joined: 16 Dec 2009 Posts: 250 Location: Earth
|
Posted: Sat 07 Apr 2012, 17:06 Post subject:
Re: Internal mobo speaker: how to make it output sound as a test Subject description: Using Puppy Linux |
|
| 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? |
I presume you mean an internal beeper-speaker, not a speaker connected to soundcard?
Busybox has nice applet: "beep". It can generate a tone via internal speaker.
_________________ SUUM CUIQUE.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1726 Location: Burghaslach, Germany
|
Posted: Sun 08 Apr 2012, 05:44 Post subject:
Re: Internal mobo speaker: how to make it output sound as a test Subject description: Using console |
|
| Sylvander wrote: | | how to produce some test sound? |
| Code: | | beep -f 800; beep -f 400 -r 3 ; beep -f 600 -r 3 -d 500 -l 100 |
Have fun (I had)
Waiting for some nice melodies
will help
|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2857 Location: West Lothian, Scotland, UK
|
Posted: Sun 08 Apr 2012, 07:58 Post subject:
|
|
Thanks L18L...
That's easy to do and did the job.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9853 Location: Arizona USA
|
Posted: Sun 08 Apr 2012, 11:07 Post subject:
|
|
Thanks L18L.
By the way, There was a thread years ago about how to make Puppy "play" any file through the speaker, by interpreting the bytes that make up the file as a PCM sound. Does anyone remember that? It used the standard commands that come with every Puppy.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1726 Location: Burghaslach, Germany
|
Posted: Sun 08 Apr 2012, 13:20 Post subject:
Internal mobo speaker: how to make it output sound as a test Subject description: beep |
|
Found some info:
Frequencies
and
Melodies
From the later: interesting code: just 1 beep
| Code: | | 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 |
|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2857 Location: West Lothian, Scotland, UK
|
Posted: Sun 08 Apr 2012, 16:21 Post subject:
|
|
Wonderful!
Any chance of the German national anthem?
Would it be difficult to put on the desktop/pinboard an icon to play that?
Or add it to the startup folder?
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1726 Location: Burghaslach, Germany
|
Posted: Sun 08 Apr 2012, 17:09 Post subject:
beep Subject description: Thoughts are free |
|
| Sylvander wrote: | Any chance of the German national anthem? | No
| Sylvander wrote: |
Would it be difficult to put on the desktop/pinboard an icon to play that? | No
| Sylvander wrote: |
Or add it to the startup folder? | No
Attached script has a very nice melody.
| Code: | #!/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
| Description |
remove .gz chmod +x have fun
|

Download |
| Filename |
ThougtsAreFree.gz |
| Filesize |
1.11 KB |
| Downloaded |
39 Time(s) |
|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2857 Location: West Lothian, Scotland, UK
|
Posted: Sun 08 Apr 2012, 18:31 Post subject:
|
|
1. Got ThoughtsAreFree to play OK.
2. Don't know how to move it to to the desktop.
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.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9853 Location: Arizona USA
|
Posted: Sun 08 Apr 2012, 23:16 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1726 Location: Burghaslach, Germany
|
Posted: Mon 09 Apr 2012, 05:07 Post subject:
beep |
|
| Sylvander wrote: | | 2. Don't know how to move it to to the desktop. | Drag and drop to the desktop which is not the folder /root/Desktop but the desktop.
| 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. |
I have found a better place:
Append
| Code: | # playing a melody while screen is black...
exec /root/my-applications/bin/ThougtsAreFree &
| to /etc/rc.d/rc.local
(/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.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1726 Location: Burghaslach, Germany
|
Posted: Mon 09 Apr 2012, 05:16 Post subject:
beep |
|
| 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.
|
Could this thread have been dated April 1st?
| Flash wrote: | | I did find this post from 2005 of rcrsn51 playing around with the beep command. |
Thank you.
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/
|
|
Back to top
|
|
 |
Sylvander
Joined: 15 Dec 2008 Posts: 2857 Location: West Lothian, Scotland, UK
|
Posted: Mon 09 Apr 2012, 06:01 Post subject:
Re: beep |
|
| L18L wrote: | | ...the song is played in bootup process (while screen is black) and finished when X is ready. |
DONE.
Handy that it finishes playing when the Puppy is ready for use.
But it may become annoying.
If it does, I'll undo it.
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9853 Location: Arizona USA
|
Posted: Mon 09 Apr 2012, 09:00 Post subject:
Re: beep |
|
| L18L wrote: | | 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.
|
Could this thread have been dated April 1st? |
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.
|
|
Back to top
|
|
 |
|