YM2612 / TX81Z Patch Compatibility
Moderator: BigEvilCorporation
YM2612 / TX81Z Patch Compatibility
I've been writing a program to play YM2612 VGM files on my Yamaha TX81Z (based on the YM2414) . I've gotten far enough that I can get songs playing fine and some of them sound quite good but the instruments don't sound quite right.
The register set for the YM2612 seems almost identical to the TX81Z midi parameters with a few exceptions.
The one I am struggling with at the moment is the output level of each operator (similarly the sustain level of the envelopes). The TX81Z uses a 0-99 with 99 being the maximum level. The YM2612 use 0-127 with 0 being being maximum level. I can't come up with a good way of mapping this parameter to get the sounds to match.
I'm pretty sure the YM2414 uses the same 0-127 attenuation as the register value and the cpu in the TX81Z converts it from a more user friendly 0-99.
I can get it to sound reasonably close with with various non-linear mappings but I would prefer to use the actual method if anyone knows it. It should be the same one all the DX series synthesizers use.
The register set for the YM2612 seems almost identical to the TX81Z midi parameters with a few exceptions.
The one I am struggling with at the moment is the output level of each operator (similarly the sustain level of the envelopes). The TX81Z uses a 0-99 with 99 being the maximum level. The YM2612 use 0-127 with 0 being being maximum level. I can't come up with a good way of mapping this parameter to get the sounds to match.
I'm pretty sure the YM2414 uses the same 0-127 attenuation as the register value and the cpu in the TX81Z converts it from a more user friendly 0-99.
I can get it to sound reasonably close with with various non-linear mappings but I would prefer to use the actual method if anyone knows it. It should be the same one all the DX series synthesizers use.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Do you know any decibel relation of the 0 ti 99 mapping ?
1 step in 0.75db on all 0...127 scale, 8 steps is 6db and so on.
1 step in 0.75db on all 0...127 scale, 8 steps is 6db and so on.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
I don't know the dB value and none of the manuals for the DX series give any indication. I think it's because it's combined with input key velocity (I send 100) and various keyboard scaling values in some esoteric way.Do you know any decibel relation of the 0 ti 99 mapping ?
1 step in 0.75db on all 0...127 scale, 8 steps is 6db and so on.
I would be interested to see how you mapped some of the parameters that don't match between the two.some years ago, I worked on TX81, FB01 and DX7 patch import (if I remember correctly the names)
I could dig on my archives if you want....
After some deep googling I found a couple of references to converting patches from a DX series to the YM2612. One said map 0-99 to 127-0 linearly (I'm pretty sure this is wrong), another said they are the same scale and the lowest levels aren't used by the DX's and so zero for a DX is the same as 99 for the YM2612.
I think the scales are the same as it sounds much closer if I just map it directly setting the lower 28 levels to zero. One thing I have found is that bass sounds are much louder on the TX81Z than the YM2612. I'm not sure why this is, I've disabled all the key scaling on the TX81Z and they still sound way too loud (it might just be I'm not dynamically altering voices and the output level register is changed during playback).
Another minor issue is the envelopes on the YM2612 are a bit quicker than on the TX81Z but other than that they sound pretty damn close.
I think the scales are the same as it sounds much closer if I just map it directly setting the lower 28 levels to zero. One thing I have found is that bass sounds are much louder on the TX81Z than the YM2612. I'm not sure why this is, I've disabled all the key scaling on the TX81Z and they still sound way too loud (it might just be I'm not dynamically altering voices and the output level register is changed during playback).
Another minor issue is the envelopes on the YM2612 are a bit quicker than on the TX81Z but other than that they sound pretty damn close.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
You got a different clock on 2612 which is why the envelopes are faster. If you use same clock for both you will got same results.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 70
- Joined: Tue Mar 06, 2007 6:30 pm