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 > The old PAL/NTSC question
2023-09-29 07:29
TWW

Registered: Jul 2009
Posts: 545
The old PAL/NTSC question

Hiho

So I was fiddling around with a v-sync'ed / fully stabilized NMI timer in conjunction with IRQ timers so that any screen effect can be controlled by a tight NMI while music is played by a CIA timer (which would allow you to adjust the timing so the player routine is called at the same intervall pr second on all models).

Now I would like to test this and there are a couple of issues which needs to be ironed out (Disclaimer, I know fuck all about music):

#1 - As I understand it by reading this forum, it is not enough to call the routine at a fixed / pr. second interval, you also need to change some of the note / frequency tables in the player routine itself. Can someone confirm and elaborate?

#2 - Given #1 is neccessary, is there any SID available which could be used to test this, where the location and contents of these tables are known so it would be trivial to make said test?
2023-09-29 07:39
Fungus

Registered: Sep 2002
Posts: 680
Yes the note tables aren't the same, the values are actually correct for NTSC as they are taken from the Programmers Reference Guide. On PAL they are out of tune, so when fixing I decided not to change them due to this fact.

If you happen to find a PAL tune with corrected note tables, then you would need to change them maybe, not that anyone will notice really unless they analyze the pitches externally, or have perfect pitch.
2023-09-29 08:55
Krill

Registered: Apr 2002
Posts: 2968
Quoting Fungus
the values are actually correct for NTSC as they are taken from the Programmers Reference Guide.
Wasn't there this story about HAL Labs Japan and composing tunes strictly by The Book, which came out utterly detuned in the end? :)

Might have been another case, though, like sticking to an early datasheet while SID changes were on the way, too.

But anyways, yes, the difference between NTSC and PAL isn't so big.
Having a different intonation would probably make more of a dent in a given tune.
2023-09-29 11:10
Stone

Registered: Oct 2006
Posts: 172
Regarding #1: Unless you need the song to be in tune with a specific pitch (e.g A440), switching between PAL/NTSC won't make a difference in that will be in tune with itself, so to speak. I don't know of any games that were released with different pitch tables between territories. The HVSC guys would know.

In fact, if you decide to go down the route of creating new pitch tables you may end up screwing up the tune because some player routines use wave table instruments or fine detune with absolute values and they are in many cases going to sound "off" if they are not adjusted as well.
2023-09-29 14:40
chatGPZ

Registered: Dec 2001
Posts: 11350
Quote:
Might have been another case, though, like sticking to an early datasheet while SID changes were on the way, too.

The Datasheet contains the values calculated for a 1Mhz clock iirc - but more importantly, some values are actually wrong (iirc the first version of the Manual contains the same mistakes)
2023-09-29 15:44
acrouzet

Registered: May 2020
Posts: 91
Quote: Quote:
Might have been another case, though, like sticking to an early datasheet while SID changes were on the way, too.

The Datasheet contains the values calculated for a 1Mhz clock iirc - but more importantly, some values are actually wrong (iirc the first version of the Manual contains the same mistakes)


Funnily enough, the values that are wrong are just typos due to misread similar-looking characters (e.g. 8 turned into B, C turned into 0, etc.)

Galway used a more accurate 1 MHz A440 table early on though. in fact, nearly all 1 Mhz A440 tables in use are derived from him, rather than the datasheet.
2023-09-29 15:49
chatGPZ

Registered: Dec 2001
Posts: 11350
I always wondered why the didnt print a small BASIC program in the Manual that calculates the note frequencies... instead of that giant table :)
2023-09-29 15:56
acrouzet

Registered: May 2020
Posts: 91
Also, if we're talking about allegedly "out-of-tune" tables, many PAL A440 tables aren't the most accurate either, and nobody seems to notice.

(In particular, Rob Hubbard's table from 1985 is still in use today in tools like SID Factory II).
2023-09-29 16:00
chatGPZ

Registered: Dec 2001
Posts: 11350
Speaking of that, did anyone yet come up with a table that shows least quantization errors (by carefully tuning it up or down a bit)? I did this on other platforms (where freq is even less accurate) and it did make a great difference.
2023-09-29 16:03
acrouzet

Registered: May 2020
Posts: 91
Quote: Speaking of that, did anyone yet come up with a table that shows least quantization errors (by carefully tuning it up or down a bit)? I did this on other platforms (where freq is even less accurate) and it did make a great difference.

A friend of mine calculated one. In the end, it doesn't make a difference (at least to my ears) cause the SID has such a fine frequency resolution.
2023-09-29 16:10
chatGPZ

Registered: Dec 2001
Posts: 11350
Yeah, perhaps doesn't matter much for SID. A tiny bit of detune can be good too :)
 
... 7 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
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
Retroluzzer/Quantum
Peacemaker/CENSOR/Hi..
Harry/Alivers
Barfly/Extend
algorithm
iceout/Avatar/HF
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Christmas Megademo  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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