3 ms·
> what "on for 1% of the time" means It's a description of the synthesised waveform. There's no envelope and sample rate isn't particularly meaningful as there
by qwery 2y ago
> what "on for 1% of the time" means
It's a description of the synthesised waveform.
There's no envelope and sample rate isn't particularly meaningful as there are no samples or recording involved.
The wave is a pulse/square wave -- 1 bit.
The signal goes high/"on" at a frequency of e.g. 440 Hz.
The 1% refers to the duty cycle[0] -- this is expressed as a percentage of the wave period (1 / 440 Hz) that the signal remains high.
So every cycle of a 1% pulse wave, for 0.01 / 440 seconds the signal is high, then 0.99 / 440 seconds the signal is low.
Changing the duty cycle can change the character of the tone, but the note/frequency is unaffected.
[0] https://en.wikipedia.org/wiki/Duty_cycle https://en.wikipedia.org/wiki/Duty_cycle
- jim-jim-jim 2y agoThat clears it up a bit, thank you. To simulate 440hz and 220hz playing simultaneously, would the phase of the latter have to be offset?
- sim7c00 2y agohttps://www.chibiakumas.com/z80/platform3.php#LessonP23 https://www.chibiakumas.com/z80/platform3.php#LessonP23 if you are interested in the beeper and how to make sound on it :D it has few tips but can give an idea how basic the stuff is. appearently the 128k has a better chip. I am wholly unfamiliar with the platform tho so sorry if my comment is a bit off the rails :D