Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2017-10-27 18:07:54

turboboy215
Member
Registered: 2015-07-30
Posts: 15

GBT Player converts song too fast?

So, I've now successfully got a song converted to GBT Player, but when I try to play it, it plays slightly faster than the original MOD. How do I fix this?

Offline

 

#2 2017-10-28 06:10:42

Mills
Member
Registered: 2012-12-21
Posts: 132

Re: GBT Player converts song too fast?

turboboy215 wrote:

So, I've now successfully got a song converted to GBT Player, but when I try to play it, it plays slightly faster than the original MOD. How do I fix this?

The music allways plays faster on the gameboy, so you have to use the mod commands in the mod to slow a bit the speed.

Offline

 

#3 2017-10-28 14:19:49

AntonioND
Member
Registered: 2014-06-17
Posts: 134
Website

Re: GBT Player converts song too fast?

The frequency of updates in the mod format is 50Hz, the frequency of updates in the GB player is 60Hz (so that it can be done with the screen refresh interrupt). If you setup a timer at 50Hz to call the player update function, it will run at the same speed.

Last edited by AntonioND (2017-10-28 14:20:12)

Offline

 

#4 2017-10-28 15:55:27

turboboy215
Member
Registered: 2015-07-30
Posts: 15

Re: GBT Player converts song too fast?

The problem is, it'll only play songs at speed 03 too fast. sad I can't get my music to play at the correct speed no matter which speed I choose. Unless there's some other solution...
EDIT: Nevermind. Speed 04 sounds kinda right. It's kind of annoying that the MOD speeds have to be changed. I wish the player had better control over which tempo you use, especially since BPM isn't supported.

Last edited by turboboy215 (2017-10-28 16:38:00)

Offline

 

#5 2017-10-28 18:40:47

AntonioND
Member
Registered: 2014-06-17
Posts: 134
Website

Re: GBT Player converts song too fast?

As I said, you're free to use the function gbt_update in any way you want. You don't need to call it from the VBL interrupt. If you really care that much about it, setup the timer so that it fires 50 times per second (and ask mod2gbt not to convert the speeds) and you'll get the same speed in the GB as in the mod editor.

BPM isn't supported for this reason: I just can't do miracles if music is updated once every 1/60 seconds.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson