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 Coding > Music PAL vs NTSC
2009-09-08 21:10
Kickback

Registered: Apr 2004
Posts: 97
Music PAL vs NTSC

I am pretty sure this topic has came up before and sorry if I have revived it.

I was wondering if it is remotely possible to play a tune made for a PAL system EXACTLY the same way on a NTSC machine.

I know you can do the simple cheat of skipping every 7th IRQ or so. But still the tune doesn't sound the same. Another question I had was, with all the music player floating around is it possible to make one that plays on both systems the same way?

Forgive me if the questions sound lame, I'm not a music head and don't know much about it. But from all the many years I have been on this machine and all the new and improved routines I would think that this would be possible?

Thanks
Kickback
2009-09-08 21:16
chatGPZ

Registered: Dec 2001
Posts: 11116
playing a pal tune on ntsc at proper speed is rather simple - use a cia timer at 50hz. (ofcourse this isnt quite an option when doing framebased raster effects)

check psid64, it has all the necessary stuff
2009-09-08 21:25
Frantic

Registered: Mar 2003
Posts: 1627
The frequencies (pitch) are a bit different on PAL and NTSC too. This is not as easily remedied.

Dunno if the difference is really hearable in practice though, since I've never tried a NTSC machine.
2009-09-08 21:26
Kickback

Registered: Apr 2004
Posts: 97
Quote: playing a pal tune on ntsc at proper speed is rather simple - use a cia timer at 50hz. (ofcourse this isnt quite an option when doing framebased raster effects)

check psid64, it has all the necessary stuff


I'm sorry, this would be used in demo pages and so forth, which raster I would need. I remember someone explaining that ways also but that would just be for playing a tune and I want to do more then that.

2009-09-08 21:35
chatGPZ

Registered: Dec 2001
Posts: 11116
@Frantic: thats another problem... but in practise its not *that* important... most tunes will play fine (some DO sound somehow detuned and strange though)

@kickback: if you want to use the tune on a per frame basis, there is not much else that you can do besides skipping frames the hard way (which often sounds crap as you say). OR you try hacking the music routine itself, which doesnt necessarily work at all.

or you do it like hcl did in some of his demos, run the music player (either in main loop or in irq) but dont write the values directly to SID but instead buffer them ... and then inside your raster code write the values from the buffer to the sid.

personally i would ask the composer to write tunes that on pal use "6" as their main speed. and then when playing them on ntsc use "5" instead. :) it would still not sound 100% correct on ntsc that way, but it would run at correct speed and you can call it once per frame easily.
2009-09-09 00:17
Adam

Registered: Jul 2009
Posts: 321
NTSC - Never The Same Colour
2009-09-09 23:13
Kickback

Registered: Apr 2004
Posts: 97
Quote: NTSC - Never The Same Colour

:)
It's COLOR lol!!!!!! jk

It sounds like either way I am just basically left with the skipping frames bit for the music.

Thanks guys for the info!

Kickback
2009-09-09 23:51
Stryyker

Registered: Dec 2001
Posts: 465
You could use timed interrupts with raster interrupts. It may sometimes sound a little off though. You would need the start of the interrupt code to do some checking to find the source etc.

How many raster interrupts do you use per frame?
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
Guests online: 129
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 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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 Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Newscopy  (9.1)
5 Elwix  (9.1)

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