* Personal DS5000 Sound
@ 1998-02-24 5:00 Sean E. Dunn
1998-02-24 5:00 ` Jonathan Stone
0 siblings, 1 reply; 5+ messages in thread
From: Sean E. Dunn @ 1998-02-24 5:00 UTC (permalink / raw)
I've tried searching through some FAQs, but I haven't been able to find
information on causing variable-frequency beeps on Personal DecStation
5000s at a really low level (maybe through assembly code). This is for a
project I'm doing in distributed system music (taking a given laboratory
full of Personal DS5000s and creating a client-server app that plays a
given note of the musical scale on each station - sort of like bell
ringers).
It comes down to the point that I have to be able to play a tone on the DS
without someone logged in. Is there a reference anyone knows of for
controlling the hardware on the DS in a more direct fashion than say,
through curses?
best regards,
Sean
--
Sean Dunn
skacore@wpi.edu
http://www.wpi.edu/~skacore/
Worcester Polytechnic Institute
"There are a thousand hacking at the branches
of evil to one who is striking at the root."
- Henry David Thoreau, "Walden", 1854
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Personal DS5000 Sound
1998-02-24 5:00 Personal DS5000 Sound Sean E. Dunn
@ 1998-02-24 5:00 ` Jonathan Stone
1998-02-25 5:00 ` Sean E. Dunn
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Stone @ 1998-02-24 5:00 UTC (permalink / raw)
In article <6cu4dc$uhm$1@bigboote.WPI.EDU>, skacore@WPI.EDU (Sean E. Dunn) writes:
|> I've tried searching through some FAQs, but I haven't been able to find
|> information on causing variable-frequency beeps on Personal DecStation
|> 5000s at a really low level (maybe through assembly code). This is for a
|> project I'm doing in distributed system music (taking a given laboratory
|> full of Personal DS5000s and creating a client-server app that plays a
|> given note of the musical scale on each station - sort of like bell
|> ringers).
|>
|> It comes down to the point that I have to be able to play a tone on the DS
|> without someone logged in. Is there a reference anyone knows of for
|> controlling the hardware on the DS in a more direct fashion than say,
|> through curses?
|>
|> best regards,
|> Sean
Have you looked at DEC CRL's ``audioFile'' (af) distribution? It has
kernel drivers. I dont' know but i don't think Ultrix had usable sound
drivers for the audio chip.
Then again, depending on what you're doing this for class credit, and
from the music side or the distributed-systems side, building and
installing AF and the kernel drivers might come awfully close to cheating-
A bit like using an X app off the net for a graphics programming class.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Personal DS5000 Sound
1998-02-24 5:00 ` Jonathan Stone
@ 1998-02-25 5:00 ` Sean E. Dunn
1998-02-25 5:00 ` Jonathan Stone
0 siblings, 1 reply; 5+ messages in thread
From: Sean E. Dunn @ 1998-02-25 5:00 UTC (permalink / raw)
Jonathan Stone (jonathan@Kowhai.Stanford.EDU) wrote:
: Have you looked at DEC CRL's ``audioFile'' (af) distribution? It has
: kernel drivers. I dont' know but i don't think Ultrix had usable sound
: drivers for the audio chip.
:
: Then again, depending on what you're doing this for class credit, and
: from the music side or the distributed-systems side, building and
: installing AF and the kernel drivers might come awfully close to cheating-
: A bit like using an X app off the net for a graphics programming class.
Rest assured, this isn't for class credit. It's for personal hackish
interests only :) I simply want to control the frequency and duration of a
tone on the PersDS5000, within a reasonable (on the millisecond scale)
resolution. The AF distribution is for the 8kHz audio processor on the Dec
Alpha.. I figure there's a hardware interrupt I can take advantage of,
but I just can't seem to get anything in the search engines.
regards,
Sean
--
Sean Dunn
skacore@wpi.edu
http://www.wpi.edu/~skacore/
Worcester Polytechnic Institute
"There are a thousand hacking at the branches
of evil to one who is striking at the root."
- Henry David Thoreau, "Walden", 1854
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Personal DS5000 Sound
1998-02-25 5:00 ` Sean E. Dunn
@ 1998-02-25 5:00 ` Jonathan Stone
1998-02-25 5:00 ` Sean E. Dunn
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Stone @ 1998-02-25 5:00 UTC (permalink / raw)
In article <6d0br1$5sb$3@bigboote.WPI.EDU>, skacore@WPI.EDU (Sean E. Dunn) writes:
> Jonathan Stone (jonathan@Kowhai.Stanford.EDU) wrote:
> : Have you looked at DEC CRL's ``audioFile'' (af) distribution? It has
> : kernel drivers. I dont' know but i don't think Ultrix had usable sound
> : drivers for the audio chip.
[snip]
> Rest assured, this isn't for class credit. It's for personal hackish
> interests only :) I simply want to control the frequency and duration of a
> tone on the PersDS5000, within a reasonable (on the millisecond scale)
> resolution. The AF distribution is for the 8kHz audio processor on the Dec
> Alpha.. I figure there's a hardware interrupt I can take advantage of,
> but I just can't seem to get anything in the search engines.
But the TC ALphas stole audio hardware design from the Personal
Decstation (AKA Maxine). They use the same audio chips and motherboard
support ASIC as the Maxine. And the AF distribution I looked at a
couple of years ago definitely had Ultrix drivers.
The MAXINE has a frequency source, programmable as 1MHz or as 100KHz,
which NetBSD uses as a high-res clock. I don't think Ultrix supports
this device. Either way, you'd need to keep up with interrupts at
about a 1KHz rate, which might would be tricky. Last time I tried, on
a 5000/200, NetBSD could handle the RTC at 512Hz but wedged tight
at 1KHz. Either the CPU is flat-out or the RTC doesnt work
at 1KHz. Or my code had a bug.
I wonder, did you try the NetBSD source code as well as online search
engines? There's also a section in the DEC .pdf descriptoin of the TC
ALpha systems on the NetBSD/Alpha Web page. The ``junkio'' subsystem
described there is basically the same one used in the MAXINE.
But I dont quite understand exactly what you're trying to do.
Do you need to actively change the audio waveform at a KHz rate, or
can you get by with just setting up DMA of a burst of audio samples,
as long as the audio output starts at the right time? Is 4ms
resolution (from the clock interrupt) close enough? And are you
worried about synchronization between the various machines?
If it were me, I'd look hard at the AF Ultrix driver, and seriously
consider NTP synchronization of all the clocks. Maybe you can do
something with a kernel driver that synchronizes itself by hanging off
the 4ms time-of-day clock tick, or by polling the high--frequency
clock chip, before starting output of each audio sample.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Personal DS5000 Sound
1998-02-25 5:00 ` Jonathan Stone
@ 1998-02-25 5:00 ` Sean E. Dunn
0 siblings, 0 replies; 5+ messages in thread
From: Sean E. Dunn @ 1998-02-25 5:00 UTC (permalink / raw)
Jonathan Stone (jonathan@Kowhai.Stanford.EDU) wrote:
: But the TC ALphas stole audio hardware design from the Personal
: Decstation (AKA Maxine). They use the same audio chips and motherboard
: support ASIC as the Maxine. And the AF distribution I looked at a
: couple of years ago definitely had Ultrix drivers.
<big snip - HOLY USEFUL INFORMATION Batman..>
Wow, cool. I had no idea the Personal Dec had so much on it.
: But I dont quite understand exactly what you're trying to do.
Here is the point of the project.. There is a lab with 24 Personal
DecStation 5000/(75??)s. They can all create simple sine-wave
tones (the error bell for example).
If a client ran multiple servers, one on each machine, and setting the
bell tone on each machine to a different frequency (..oh, say to a note in
a 2 octave musical scale) then the client could implement a polyphonic
musical instrument across the range of computers in the laboratory.
Rather than at a high level setting the terminal bell configuration and
making a beep (through xset b <vol> <freq> <duration>), I want to do it at
a lower level that lets me make a beep on that machine when noone is
logged in through the X interface on the machine (I don't believe you can
make the computer create a simple tone unless you are logged into the
machine and have a localhost:0.0 connecton providing an interface for the
terminal bell to sound off). If I'm wrong, please correct me.
This musical client is just an experiment really. These computers
are rarely used (some of the slowest on my campus) and the concept
interests me quite a bit. I guess you could think of it as a crude
electronic bell choir. ;]
Sean
--
Sean Dunn
skacore@wpi.edu
http://www.wpi.edu/~skacore/
Worcester Polytechnic Institute
"There are a thousand hacking at the branches
of evil to one who is striking at the root."
- Henry David Thoreau, "Walden", 1854
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-02-25 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-24 5:00 Personal DS5000 Sound Sean E. Dunn
1998-02-24 5:00 ` Jonathan Stone
1998-02-25 5:00 ` Sean E. Dunn
1998-02-25 5:00 ` Jonathan Stone
1998-02-25 5:00 ` Sean E. Dunn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox