DigiTan
New Member
I have a couple of sound-related questions...
I'm doing a short experiment with a Z80 processor to see if it is possible to create biphonic music directly from a TTL signal. The speaker would be attached directly to the I/O port, with no D->A conversion or filtering. Anotherwords the sound depth is 1-bit. Basically, I would have the music is stored as a string of note/volume/duration parameters within the program memory, and then play the tones in sequence or in pairs.
My conserns are volume and distortion. I want to be able to limit the volume using PWM. The idea seems to work for optics, but does it work for sound too? Also, since it can only produce rectangular waves, I am conserned that the two melodies will collide and annihilate each other most of the time rather than adding or subtracting from each other like in nature. If I use PWM, will this distortion be limited at all?
I'm doing a short experiment with a Z80 processor to see if it is possible to create biphonic music directly from a TTL signal. The speaker would be attached directly to the I/O port, with no D->A conversion or filtering. Anotherwords the sound depth is 1-bit. Basically, I would have the music is stored as a string of note/volume/duration parameters within the program memory, and then play the tones in sequence or in pairs.
My conserns are volume and distortion. I want to be able to limit the volume using PWM. The idea seems to work for optics, but does it work for sound too? Also, since it can only produce rectangular waves, I am conserned that the two melodies will collide and annihilate each other most of the time rather than adding or subtracting from each other like in nature. If I use PWM, will this distortion be limited at all?