Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 20 Nov 2014, 19:32
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Internal mobo speaker: how to make it output sound as a test
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
Sylvander

Joined: 15 Dec 2008
Posts: 3515
Location: West Lothian, Scotland, UK

PostPosted: 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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11150
Location: Arizona USA

PostPosted: 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
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: 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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2570
Location: Moved from Hosla to www.eussenheim.de

PostPosted: 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 Laughing
Code:
beep --help
will help
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3515
Location: West Lothian, Scotland, UK

PostPosted: Sun 08 Apr 2012, 07:58    Post subject:  

Thanks L18L...

That's easy to do and did the job. Very Happy
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11150
Location: Arizona USA

PostPosted: Sun 08 Apr 2012, 11:07    Post subject:  

Thanks L18L. Smile

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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2570
Location: Moved from Hosla to www.eussenheim.de

PostPosted: 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 Cool
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
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3515
Location: West Lothian, Scotland, UK

PostPosted: Sun 08 Apr 2012, 16:21    Post subject:  

Wonderful! Cool

Any chance of the German national anthem? Very Happy

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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2570
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sun 08 Apr 2012, 17:09    Post subject: beep
Subject description: Thoughts are free
 

Sylvander wrote:
Any chance of the German national anthem? Very Happy
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
ThougtsAreFree.gz
Description  remove .gz
chmod +x
have fun
gz

 Download 
Filename  ThougtsAreFree.gz 
Filesize  1.11 KB 
Downloaded  80 Time(s) 
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3515
Location: West Lothian, Scotland, UK

PostPosted: Sun 08 Apr 2012, 18:31    Post subject:  

1. Got ThoughtsAreFree to play OK. Very Happy

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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11150
Location: Arizona USA

PostPosted: 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. Sad

I did find this post from 2005 of rcrsn51 playing around with the beep command.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2570
Location: Moved from Hosla to www.eussenheim.de

PostPosted: 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. Wink

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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2570
Location: Moved from Hosla to www.eussenheim.de

PostPosted: 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. Sad

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? Laughing

---

edited: found this:
https://github.com/binarypearl/beepbeep/
Back to top
View user's profile Send private message 
Sylvander

Joined: 15 Dec 2008
Posts: 3515
Location: West Lothian, Scotland, UK

PostPosted: 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. Very Happy
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
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11150
Location: Arizona USA

PostPosted: 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. Sad

Could this thread have been dated April 1st?

Laughing 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0836s ][ Queries: 12 (0.0052s) ][ GZIP on ]