Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Composing > I made a SID note table calculator
2023-07-18 19:08
acrouzet

Registered: May 2020
Posts: 80
I made a SID note table calculator

I don't know if this is fit for a proper release on CSDb, so I'm just posting it here, hope you don't mind.

I made a spreadsheet program that generates a SID note table given a clock and a frequency value. In addition to the note table bytes in hexadecimal, for each note you can also view the target frequency and the actual frequency the SID will generate in hertz, and the error between the two in both interval and cents. You can also see what frequencies will be targeted and output when using one clock’s note table calculation on another clock.

Link: https://docs.google.com/spreadsheets/d/1zjroenEv8O8WT05sCiKdbX_..

If you have a Google account, you can just click "File > Make a copy" to save and edit your own copy of the spreadsheet online, or you can click "File > Download" to download the spreadsheet as an Excel sheet or OpenDocument.
2023-07-18 21:32
Bansai

Registered: Feb 2023
Posts: 34
Is that an NTSC-only table or are there options for both and I'm missing them?

Note also...converting to hex/binary seems to be tricky for the least significant bit in some cases in that sometimes it appears that needs to be rounded up (versus the "missing" bit in position minus one) for slightly better accuracy rather than simply truncated off. I think on some frequency tables you'll see as an example $022D vs $022C for C-1 for this reason.
2023-07-18 21:41
acrouzet

Registered: May 2020
Posts: 80
Quote: Is that an NTSC-only table or are there options for both and I'm missing them?

Note also...converting to hex/binary seems to be tricky for the least significant bit in some cases in that sometimes it appears that needs to be rounded up (versus the "missing" bit in position minus one) for slightly better accuracy rather than simply truncated off. I think on some frequency tables you'll see as an example $022D vs $022C for C-1 for this reason.


You can set the clock frequency in the INPUTS section. (985248 for PAL, 1022727 for NTSC). Also, all frequency values should be rounded according to standard practice. The rounding to a whole number occurs before conversion to hexadecimal.
2023-07-18 21:49
Bansai

Registered: Feb 2023
Posts: 34
Great, thank you! Coincidentally, this spreadsheet performs exactly the flavor of calculation I need for another, related project. :-)
2023-07-19 05:10
cbmeeks

Registered: Oct 2005
Posts: 72
Very useful. Thanks for doing this.

me
http://meeks.co
2023-07-23 08:10
acrouzet

Registered: May 2020
Posts: 80
Just added many new things to the spreadsheet, including the ability to convert between different table formats and the ability to compare a manually input table with a calculated one. Will make a document explaining all the parameters soon.
2023-07-23 10:52
Krill

Registered: Apr 2002
Posts: 2850
This seems to be limited to equal temperament.

Would be cool to have some more intonation options. =)

(Not that it might make much of a difference depending on a given composition, mind.)
2023-07-23 16:02
acrouzet

Registered: May 2020
Posts: 80
Quote: This seems to be limited to equal temperament.

Would be cool to have some more intonation options. =)

(Not that it might make much of a difference depending on a given composition, mind.)


Yeah, I know. 12TET is just the easiest to implement :p
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Krill/Plush
shuran33/Outsiders
The Human Co../Maste..
Icecube/Light
kbs/Pht/Lxt
doctorfargo/Binary L..
zscs
Rebok/BOOM!/Tropyx
Sokrates
Courage
Guests online: 116
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Musicians
1 Vincenzo  (9.8)
2 Rob Hubbard  (9.7)
3 Stinsen  (9.7)
4 Jeroen Tel  (9.6)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.063 sec.