SCC waveform sample rate

Par Mr.Mouse

Expert (66)

Portrait de Mr.Mouse

02-02-2022, 19:21

Hi all,

Just a question about the SCC waveform.

So I understand that the frequency for a channel can be calculated using

freq = clock / (32 * (period+1))

Since a waveform in the SCC is 32 bytes, or samples, does that mean that the frequency refers to a complete round of the waveform sample table?

So in other words, a frequency of completing the 32 byte samples?

Taking A4 (440 hz) as example, does it mean it we complete the full waveform pattern 440 times per second?
Meaning that the sample rate (of fetching the next sample for output) is 440 hz * 32 bytes = 14080 bytes/second?

!login ou Inscrivez-vous pour poster

Par Parn

Paladin (833)

Portrait de Parn

03-02-2022, 12:10

That seems correct.

Par Grauw

Ascended (10707)

Portrait de Grauw

03-02-2022, 13:18

Yep, indeed.

Par Mr.Mouse

Expert (66)

Portrait de Mr.Mouse

04-02-2022, 22:43

Ok great. Thanks. Then my code is ok.