Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cybernoid1 - Noisy section #1

Open
tomcw opened this issue Apr 5, 2023 · 0 comments
Open

Cybernoid1 - Noisy section #1

tomcw opened this issue Apr 5, 2023 · 0 comments

Comments

@tomcw
Copy link
Owner

tomcw commented Apr 5, 2023

Cybernoid1's tune is noisy when played back on real Mockingboard or Phasor (in MB mode) hardware, but less noisy on a Phasor (in Phasor mode) h/w. The difference is the AY8913 is clocked at 1MHz (MB mode) vs 2MHz (Phasor mode).

Here's a comparison in Audacity:

Top: Cybernoid1-Fix5-Phasor(MB-mode-1MHz).wav
Bottom: Cybernoid1-Fix5-Phasor(Phasor-mode-2MHz).wav
(Both "Split stereo to mono", then removed the 2nd channel)

image

This noisy section is ~960ms in duration or 48 x 20ms (48 x 50Hz interrupts).
(In the above Audacity screenshot, I included a non-noisy block at the start & end - ie. where it's the same top & bottom.)
IE, the 48 x AY registers in this code: https://github.com/tomcw/Cybernoid/blob/master/CybernoidTest2/CybernoidTest2.a

Only AY channel-A is used, and the frequency (A-period) & amplitude (A-vol) is changed each 20ms (50Hz) interval.
There are 8 blocks of 6 AY-regs, where A-Vol changes like this each block: {$D,$C,$B,$A,$9,0}

You can see the 8 sections on the bottom (2MHz) trace; and less clearly in the top trace, see the 8 sections (ie. pick out the spike from the starting $D amplitude).

For some reason at the 1MHz clock, the same AY chip is unable to respond to the new frequency. Only a few times in the top (noisy section) does it oscillate, the remainder of the time it decays to zero, then there's a new spike when the amplitude changes.

NB. there are still a few parts in the 2MHz trace where it doesn't oscillate... in fact it's typically alternate parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant