Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!bacchus!mwm From: mwm@pa.dec.com (Mike (My Watch Has Windows) Meyer) Newsgroups: comp.sys.amiga.audio Subject: Re: How to access Perfect Sound 3.0 ? Message-ID: Date: 23 May 91 17:31:18 GMT References: <205@gem.stack.urc.tue.nl> Sender: news@pa.dec.com (News) Organization: Missionaria Phonibalonica Lines: 44 In-Reply-To: peter@gem.stack.urc.tue.nl's message of 23 May 91 14:26:21 GMT In article <205@gem.stack.urc.tue.nl> peter@gem.stack.urc.tue.nl (Peter Korsten) writes: Hi. I was wondering if anybody has information about how to directly access my Perfect Sound 3.0 hardware; e.g. reading left/right/stereo, setting record level per software. I want to build a spectrum analyser and I noticed that my hardware isn't that standard. The best way is to return the PS 3, and buy something else. Failing that, find someone who would rather have a PS 3 than what they've currently got, and trade. That's how I got an AMAS instead of the PS 3. So... *does* anybody know how the hardware is accessed ? Maybe I'll write a sampler.device, that supports samplers on the parallel port and all hardware (BTW, are there other samplers that are non-standard ?). Yes, other samplers are non-standard; more accurately, there's not a standard for sample-and-hold or for samplers with hardware gain. If you get the 3.1 update from ScumRize, it's got a shared library for doing sampling. You can tell how good it is by noting that they don't use it in their sampler. It also forces you to use the same kinds of interfaces as they use in their sampler. At one point, I had dug into that library[12~; written a document describing how to read their sampler, and was working on sample code - then it got eaten by a disk crash. I traded samplers before I got back to it.... From memory, so the details may be wrong. PS 3 uses the upper two bits of the parallel port as control. Stobing bit 6 causes a sample to be taken, and bit 7 says whether the sample is on the left or right channel. The Printer Ready and Paper Out lines are read from the control port for the other two bits. You strobe Data Ready (?) to raise the gain level on the channel selected with bit 7. To go down, you strobe it until you stop getting signal on the sampler; that means it rolled over.