LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2012, 09:31 PM   #1
Master_CAPS
Member
 
Registered: Mar 2012
Location: I live at ::1 usually...
Distribution: Yes.
Posts: 55

Rep: Reputation: Disabled
startup/boot tunes (grub2_init-tune) share your knowdegle please!


All I could find is mario, starwars, wolfstein3d.... Basically nerdy overplayed stuff.

Oddly I searched all over google but I guess this init tune in grub isnt a very big deal to people so I came here in hope of seeking more tunes or how I could convert notes to frequcies.

I also found a script to "test" the tunes in a terminal, but it doesnt work for me: (all I can do is keep trying and rebooting to hear my tunes)

Code:
#!/bin/dash

if [ $# -lt 3 ]; then
    echo "Usage: $0 tempo freq dur [freq dur freq dur...]" >&2
    exit 1
fi

tempo=$1; shift

tmpdir=$(mktemp -d)

while [ -n "$*" ]; do
    freq=$1; shift
    dur=$1;  shift
    dur=$(echo "$dur*(60/$tempo)"|bc -l)
    sox -U -r 8000 -n -t raw - synth $dur sine $freq >>$tmpdir/grubtune.ul
done

play -q -c1 -r 8000 $tmpdir/grubtune.ul

rm -r $tmpdir
 
Old 08-23-2012, 10:42 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I just tried that script on a couple "tunes" I found on-line, and it worked fine.

Note that the next-to-last command is play, so naming the script "play" and making it executable and in you $PATH won't work.

Here's what I ran:

./Play 480 440 4 440 4 440 4 349 3 523 1 440 4 349 3 523 1 440 8 659 4 659 4 659 4 698 3 523 1 415 4 349 3 523 1 440 8
./Play 1000 334 1 334 1 0 1 334 1 0 1 261 1 334 1 0 1 392 2 0 4 196 2

And here's an attempt at Für Elise I found in a Ubuntu forum:
./Play 480 420 1 400 1 420 1 400 1 420 1 315 1 370 1 335 1 282 3 180 1 215 1 282 1 315 3 213 1 262 1 315 1 335 3 213 1 420 1 400 1 420 1 400 1 420 1 315 1 370 1 335 1 282 3 180 1 215 1 282 1 315 3 213 1 330 1 315 1 282 3

<edit>
Changing the tempo from 480 to 580 on that last one made it sound better to me . . .
</edit>

Last edited by PTrenholme; 08-23-2012 at 10:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Apple tries to shut down El Tunes - Viva La El Tunes! LXer Syndicated Linux News 6 08-01-2008 07:33 AM
LXer: Apple tries to shut down El Tunes - Viva La El Tunes! LXer Syndicated Linux News 0 07-31-2008 06:40 AM
Auto mounting Linux smb share on Windows at startup neranjana Linux - Networking 1 07-02-2004 06:56 PM
need 2 remove kernel fat from boot and fine tune what's left mjewell Linux - Newbie 10 01-24-2004 08:01 PM
Mount network share at startup. Ge0ph Linux - Networking 3 10-17-2001 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration