| |
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
|
|
| |
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 |
| |
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. |
| |
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.
|
| |
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. |
| |
Adam
Registered: Jul 2009 Posts: 323 |
NTSC - Never The Same Colour |
| |
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 |
| |
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? |