vgmrips

The forum about vgm files
It is currently 2019-01-18, 2:06:13

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: 2019-01-04, 0:27:57 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
i was trying to convert a simple vgm tune, from Super Cobra (ay-3-8910, from msx1) to co12294 sound chip (Atari "Pokey"), just by editing a vgm file as hexdump

after trying this, it seems that converting vgm files, from one sound chip to another, seems to be not that hard (i'm curious about among yamaha ym chips! :D - counting with quality losses, obviously )

this one seems simple, since both ay-3-8910 and co12294 seems quite similar each other


Attachments:
supercobra_playstart_co12294.zip [1.98 KiB]
Downloaded 18 times


Last edited by nitrofurano on 2019-01-09, 10:53:54, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-04, 13:15:53 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
and here is the ym2413 version


Attachments:
supercobra_playstart_ym2413.zip [1.87 KiB]
Downloaded 14 times
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-04, 16:38:16 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
saa1099...


Attachments:
File comment: _
supercobra_playstart_saa1099.zip [2.02 KiB]
Downloaded 9 times
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-05, 17:15:37 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
rp2a03 (nes apu) ...


Attachments:
supercobra_playstart_rp2a03.zip [1.19 KiB]
Downloaded 6 times
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-07, 13:10:40 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
sn76489 (with some help from deflemask, for the germanic notation frequencies)


Attachments:
supercobra_playstart_sn76489.zip [1.91 KiB]
Downloaded 4 times
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-09, 0:24:38 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
and k052539... (scc+)


Attachments:
supercobra_playstart_k052539.zip [2.02 KiB]
Downloaded 4 times
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-09, 0:31:27 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
the original rip, ay-3-8910, with some cleanup on the hexdump (k052539 version is actually based on this one)


Attachments:
supercobra_playstart_ay38910.zip [866 Bytes]
Downloaded 6 times
Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-09, 10:52:39 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
a question: how easily can we do the same on other yamaha ym chips (like ym2203, ym2612, etc.) as i did with ym2413 above?

i guess it wouldn’t be that hard, since ym2413 seems to be the simplest yamaha ym chip, and we only need to choose the instrument, and work on the frequency and volume registers as i did on ym2413?

(about ym2203, i’m mentioning using the fm chanels only, not the ay-3-8910 ones)


Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-09, 19:45:32 

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

Joined: 2011-12-01, 20:20:07
Posts: 3036
Location: Germany
For the YM2203 and its successors you have to setup the instrument manually by writing to registers 30/34/38/3C/40/.../98/9C and B0 (and B4 for YM2608 and later).
After doing that, you can write to the frequency registers and turn the tone on.


Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-11, 2:24:46 
Offline
User avatar

Joined: 2016-02-16, 12:54:37
Posts: 90
does that mean we can‘t change each channel volume on the fly on ym2203 as we can do on ym2413?


Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-11, 8:24:27 

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

Joined: 2011-12-01, 20:20:07
Posts: 3036
Location: Germany
You can change everything on the fly, but depending on the channel configuration the volume (stored in the TL registers at 0x4#) of certain operators will change the characteristics of the sound and not the volume.


Top
 Profile  
 
 Post subject:
PostPosted: 2019-01-12, 13:19:22 

Contributors Contributors
Staff Staff
Reverse engineers Reverse engineers
Offline
User avatar

Joined: 2013-07-17, 23:32:39
Posts: 347
You have to change the TL value of the carriers as specified by the algorithm.

The table below shows the amount of carriers for each algorithm. To change the volume of a channel without affecting the timbre, start from the last operator and go backwards, change the TL value until you've done this <n> times. This applies to the OPN and OPM chips (Nevermind the naming of the operators as M1, C1 etc in the YM2151 manual, that does not affect the algorithms).

Note that the TL register uses logarithmic steps, so each step of the TL register equals -0.75 dB. That means that you'll just have to add your volume change to the default value of the TL register as specified by the instrument. You might want to generate a lookup table if you use linear volume in your code.
Code:
+-----------+----------+
| Algorithm | Carriers |
+----------------------+
| 0,1,2,3   | 1        |
| 4         | 2        |
| 5,6       | 3        |
| 7         | 4        |
+-----------+----------+


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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.322s | 16 Queries | GZIP : On ]