vgmrips

The forum about vgm files
It is currently 2019-10-22, 11:04:35

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2019-05-05, 6:21:54 
Offline

Joined: 2019-05-03, 5:49:33
Posts: 7
hello there

Im trying to open the VGMs in audacity for chopping the Slap Bass and the Distorted guitars from sega model x/y SegaPCM, the idea is use the raw data for making a soundfont the most accurate to the game ost, and in the smaller disk space possible


im trying with unsigned 8-bit, no endianess, in 16000hz sample rate, but seems incorrect, so here is the question


Can you tell me please, which is exactly sample rate per game VGM for load it in audacity?

there is the games list that i am working on
-After Buner (sega model x)
-After Burner II (sega model x)
-Galaxy Force (sega model x)
-Galaxy Force II (sega model y)
-Thunder Blade (sega model x)

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: 2019-07-22, 21:29:40 

Staff Staff
Programmers Programmers
Musicians Musicians
Contributors Contributors
Reverse engineers Reverse engineers
Offline
User avatar

Joined: 2011-12-01, 20:20:07
Posts: 3167
Location: Germany
The sample rate is hardcoded into the sequence data for the sound driver, so there is no general value.

The SegaPCM chip outputs a sample rate of 31250 Hz.
It has an 8-bit "sample delta" register (256 steps, values from 0 to 255) for controlling the pitch of the sample playing on a channel. Its value specifies the fraction of the chip's sample rate the sample plays with.
Thus, you can calculate the rate the samples plays at with this formula: 31250 Hz * ([value of sample delta register] / 256)
i.e. if the register is set to 0x80 (hexadecimal for 128), then you get: 31250 Hz * (128 / 256) = 15625 Hz

In order to figure out what values the games use for the register, you could use vgm2txt on a some VGMs that use the SegaPCM chip.
Searching for "Sample Delta Time" in the text file should make you able to find the respective values.


Top
 Profile  
 
 Post subject:
PostPosted: 2019-09-29, 17:59:42 
Offline

Joined: 2019-09-29, 17:50:07
Posts: 2
ValleyBell wrote:
The sample rate is hardcoded into the sequence data for the sound driver, so there is no general value.

The SegaPCM chip outputs a sample rate of 31250 Hz.
It has an 8-bit "sample delta" register (256 steps, values from 0 to 255) for controlling the pitch of the sample playing on a channel. Its value specifies the fraction of the chip's sample rate the sample plays with.
Thus, you can calculate the rate the samples plays at with this formula: 31250 Hz * ([value of sample delta register] / 256)
i.e. if the register is set to 0x80 (hexadecimal for 128), then you get: 31250 Hz * (128 / 256) = 15625 Hz

In order to figure out what values the games use for the register, you could use vgm2txt on a some VGMs that use the SegaPCM chip.
Searching for "Sample Delta Time" in the text file should make you able to find the respective values.


While testing which point can be the sweet spot as of now?

_________________
Regards,
Cisa Smith


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.063s | 14 Queries | GZIP : On ]