Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!BROWNVM.BROWN.EDU!DANFUZZ From: DANFUZZ@BROWNVM.BROWN.EDU (Dan Bornstein) Newsgroups: comp.sys.apple Subject: Re: cassette click Message-ID: <8910251156.aa16257@SMOKE.BRL.MIL> Date: 25 Oct 89 15:45:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 49 >Re: cassette click >From: Jawaid Bazyar > .uiuc.edu!jb10320@APPLE.COM> > >In article <2390@eagle.wesleyan.edu> dkonerding@eagle.wesleyan.edu writes: >>... One thing I'm doing to trying to get a check the cassette in >>byte and see if there's sound coming in,and if so, click the speaker-- in >>effect, making the Apple speaker sound like whatever my tape is playing. I >>know that people have taped their voices and played them back with the Apple, > As far as I remember, only one bit in the C060 (or whatever) cassette-in >port is actually functional. I assume this is the high bit (7 or 8 for those >of you who prefer). What you really need to check for is something like this: >LDA C060 >BPL TOP >BIT C030 >BRA TOP > > In addition, you might need to put some sort of delay in this loop, >as this loop executes at around 100,000 times per second, far faster than >the resolution of the speaker and sound hardware on the //e. Not quite; The way the cassette port works is *not* to toggle hi/low for each click but rather to just do one change (low to high or vice versa), so the program should look like this (no extra delay necessary): 300: BIT C060 303: BPL 300 305: BIT C030 308: BIT C060 30B: BPL 308 30D: BIT C030 30F: JMP 300 This should click whenever the state of the cassette port changes. If you're interested in actual digitizing, I wrote a program a while ago (when I still had an Apple ][ (not ][+,e,etc.) called "Reel To Reel". If you can't find it locally, mail me and I'll try to get it packed and upload it (the last time I uploaded from an Apple was pre-shrinkit, so I may have to get that first; it may take me a while, seeing as I'm in the midst of midterms.) Mail me if you're interested. -dan Bitnet: danfuzz@brownvm Internet: danfuzz@brownvm.brown.edu AppleTalk: Find me a long enough cable and I'll see what we can do.