On Wed, Apr 25, 2001 at 04:37:29AM -0400, Mike A. Harris wrote:
> or if you want to get fancy/play music:
> 
> man 4 console_codes
> 
>        ESC [ 10 ; n ]      Set bell frequency in Hz.
>        ESC [ 11 ; n ]      Set bell duration in msec.

I'd probably use esound instead.

> 
> #!/bin/bash
> FREQ=345
> DUR=300
> echo -e "\033[10;$FREQ]\033[11;$DUR]\007"
> 
> Playing multiple notes after one another doesn't work great.  You
> need to put a delay in, but I dunno of a scriptable subsecond
> delay... sorry..  ;o)

Scriptable subsecond delay:

echo '^G'; python -c 'import time; time.sleep(0.1)'; echo '^G'

-- 
Dan Stromberg                                               UCI/NACS/DCS

PGP signature

Reply via email to