William James wrote:
> On 5/23/07, Roland Mainz <roland.mainz at nrubsig.org> wrote:
> > Attached is a small sample demo/toy script ("audiotest.ksh.txt") which
> > should demonstrate the usage of binary variables in ksh93 (>= ksh93s+)
> > via creating an audio sample and sending it to the audio device...
> >
> > ... can anyone with a SunRay server test whether the attached demo
> > script works on a SunRay terminal (speakers required), please ?
> 
> I don't have a Sunray but the script generated a short tune on my
> speakers, not very well though. The sound is more squeaking than
> music.

Uhm... the script is a small&&dumb test... it was never intended to be
usefull to play real music. If you look at the code you'll see that the
script doesn't care about waveform or ?-law encoding or other important
things - it only uses frequency and geneates an on/off pattern and dumps
this to the audio device.

> Stereo would be nice.

Erm, please take a look at the audio(7d) manual page - the default setup
for /dev/audio is 8bit mono ?-law at 8000Hz - for anything else we would
need a special |ioctl()| call to set the audio device attributes to
different values (or tweak the audio device to really understamd the
au(4) file format).

> I can send you the piano notes for 'Have You Ever Seen the Rain' if you want 
> :)

Uhm... I am not lawyer... but I guess OpenSolaris.org wouldn't be
allowed to publish such a script without paying some $$$$ to RIIA or
other organisations who own the rights for that song.. ;-(
... somewhere on my ToDo list is something like a MusicML parser which
could swallow any MusicML file and convert it into an au(4) file... this
would allow (at least) to use the matching files from project gutenberg.

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to