3 ms·
When I was first introduced to BASIC in elementary school, I was spending a lazy afternoon reading in the built-in QBasic docs (being able to hit F1 and get imm
by vunderba 1y ago
When I was first introduced to BASIC in elementary school, I was spending a lazy afternoon reading in the built-in QBasic docs (being able to hit F1 and get immediate help is still one of the coolest things ever IMHO) about the SOUND keyword, which let you set a frequency and duration.
I remember irritating the hell out of my parents (and our dog) with it until one day, by accident, I noticed they couldn’t hear the tone anymore. The frequency was somewhere in the range of 15-20 kHz IIRC.
So I wrote a “PASSWORD.BAS” source that would play that high pitched sound in short, one-tick intervals continuously while polling the keyboard for input but then stop after a random amount of time. To authenticate, the user had to hit the spacebar within a one second window of the sound’s termination. Hitting the spacebar too early would also result in access denied. Fun times!
- analog8374 1y agoI used to mess with sound on my commodore 64. 3 voices. ASDR. Square, sine, triangle. Chords were frequencies with common factors. The world of strange sounds is vast.
- vunderba 1y agoNice! I still love that one of the ways that C64 composers worked around the limitations of 3 independent sound channels was to use a single voice to simulate a chord by playing the triad of notes in an continual extremely rapid arpeggiation. Incidentally, if you're ever interested in playing around with one again, there's a really accurate VST emulator called Chipsynth C64 [1]. [1] https://www.plogue.com/products/chipsynth-c64.html https://www.plogue.com/products/chipsynth-c64.html