l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 16:57

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] beeping linux (and star trek)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] beeping linux (and star trek)

very impressive, micah!   thanks for the cool tip!

micah, can you put your program on your website (and remind me of the url,
it's something like cowanbox.org?).  i'd really like to download it and play
with it for awhile.

an impressed pete!

On Mon, 18 Sep 2000 micah@cowanbox.com wrote:

> I also have another way.  I believe your way will only work on xterm, etc.
> If you are in console mode, you may do this:
> echo -e "\e[11;0]"
> (if that doesn't work, replace the \e with \033).
> Poking around in the virtual terminal soruce recently,
> I found a couple commands which alter the console beep.
> echo -e "\e[10;<some_freq>]"
> to set the frequency at which the beep will play.  For
> example, to set it to "A" 220, just do:
> echo -e "\e[10;440]"
> and use
> echo -e "\e[11;<duration_in_millisecs>]"
> to set the length (must be less than 2000) in
> milliseconds.
> Try it!
> --------------------------------------
> In some relation to this, I just wrote a small program
> this weekend which uses the built-in speaker to play melodies.
> It simply takes the notes you wish to play as arguments,
> in the following format:
> (note name)(sharp or flat)(octave)(note length)
> always lowercase.  Octaves are numeric, ranging from 1 to 5 (a3 = a-440).
> Note lengths are specified in beats or fractional beats, such as:
> w = whole note
> h = half note
> q = quarter note
> e = eighth note
> s = sixteenth note
> t = thirty-second note
> and may be combined to form things such as:
> qe = dotted quarter-note
> est = doubly-dotted eighth-note
> Octaves and durations may be left out, after having been specified
> (octaves, actually, never need to be specified).
> For example,
> ditty c3e d e f g a b c4
> plays a C-Major scale.  You can also feed pre-typed files to it.
> Does this stupid little toy interest anyone?  I'll be releasing it soon,
> but I need to do a little clean-up, and also plan on adding a /dev/dsp
> alternative option.  GPL'd - /OF COURSE!/
> Pete, I thought maybe it might be useful to you in writing your
> ear-training program, either in calling ditty (my program) from a 
> shell-script, or execve, or "appropriating" the code within.

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!