JonnyGators
Experienced Member
Ok, an oddball observation that perhaps no one else ever really noticed or cared about. But something I always noticed.
So, the compaq portable came with some demos that would draw designs and play music. This is something that is my earliest memory of computers, so something that has stuck with me all these years. One of the demos has a section with this sliding sound effect. We had the compaq disk with this demo, and we had gotten a computerland BC88 family computer in 1986, so every now and then we might play the demo on that computer. And I always noticed....that sliding sound didn't sound quite the same. I dunno, that just always bothered me, everytime we'd play it on that machine, it would get to that point and I'd always think, that doesn't sound right.
More recently, I've obtained the disk image and playing it in dosbox makes a sound that's just completely different.
On the old machines it has a buzziness or growliness to it, where dosbox makes a pure sliding tone sound.
So, now that I have a working compaq portable, I can go back to playing with the sound, and the code in basic, and try to figure it out. And....it's still kind of a mystery.
Ok, so here's a youtube example of a portable playing the sound:
https://youtu.be/WxZMl9ZQYXU?t=210
I've found the code that has the sound, and the basic code for it is as follows (obviously in the actual code the line numbers are much higher)
10 for j=2 to 10 step 2
20 for i=j*30 to 1000 step j
30 sound i,.01
40 next:next
If you're going to run this code, I recommend adding 50 sound 0,0 to make it stop the sound at the end of the program, otherwise it'll keep sustaining the last tone until you stop it.
What I've found is that, running this code by itself on a compaq portable still sounds different than it sounds in the context of the demo. But I can't understand why that would make a difference. Same code, giving specific frequencies and duration, should sound the same by itself, or in the context of the program while it's showing a stationary image on the screen.
Anyways, I dunno, just my odd observation over this old piece of code that seems to be inconsistent from machine to machine over the years.
So, the compaq portable came with some demos that would draw designs and play music. This is something that is my earliest memory of computers, so something that has stuck with me all these years. One of the demos has a section with this sliding sound effect. We had the compaq disk with this demo, and we had gotten a computerland BC88 family computer in 1986, so every now and then we might play the demo on that computer. And I always noticed....that sliding sound didn't sound quite the same. I dunno, that just always bothered me, everytime we'd play it on that machine, it would get to that point and I'd always think, that doesn't sound right.
More recently, I've obtained the disk image and playing it in dosbox makes a sound that's just completely different.
On the old machines it has a buzziness or growliness to it, where dosbox makes a pure sliding tone sound.
So, now that I have a working compaq portable, I can go back to playing with the sound, and the code in basic, and try to figure it out. And....it's still kind of a mystery.
Ok, so here's a youtube example of a portable playing the sound:
https://youtu.be/WxZMl9ZQYXU?t=210
I've found the code that has the sound, and the basic code for it is as follows (obviously in the actual code the line numbers are much higher)
10 for j=2 to 10 step 2
20 for i=j*30 to 1000 step j
30 sound i,.01
40 next:next
If you're going to run this code, I recommend adding 50 sound 0,0 to make it stop the sound at the end of the program, otherwise it'll keep sustaining the last tone until you stop it.
What I've found is that, running this code by itself on a compaq portable still sounds different than it sounds in the context of the demo. But I can't understand why that would make a difference. Same code, giving specific frequencies and duration, should sound the same by itself, or in the context of the program while it's showing a stationary image on the screen.
Anyways, I dunno, just my odd observation over this old piece of code that seems to be inconsistent from machine to machine over the years.