superchip is way out of tune
cleary opened this issue · 2 comments
cleary commented
Not sure if by design, but it is unusable with other synths (and it makes a great bass synth imo).
d1 $ note "c" # s "superchip"
should yield a note somewhere near c4@261.7Hz
Instead, it's a very sharp a3@228.1Hz
telephon commented
Yes, it seems to be the freqtotone
method of the AY
ugen is not correct.
*freqtotone { |freq|
// Approximate empirical...
//^(109300 / (freq - 3.70727))
^(110300 / (freq - 0.5))
}
Here is a test:
(
Ndef(\x, {
var freq = AY.freqtotone(300);
AY.ar(freq, freq, freq) * 0.1
}).play;
)
Ndef(\x, { Saw.ar(300) * 0.1 }).play;
it would be really nice if you could find a way to tune it.
Here is the datasheet: https://www.cpcwiki.eu/index.php/Datasheet_AY-8913
telephon commented
I've moved the issue here: supercollider/sc3-plugins#348