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: 11386
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: 1648
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: 11386
@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: 323
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: 468
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
MWR/Visdom
SplAtterpunk
Acidchild/Padua
Tom-Cat/Nostalgia
Mike
Jammer
deetsay
Guests online: 127
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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