Skip to content

Commit 9b28365

Browse files
author
kumatan
committed
TAG763 2025/03/16 2nd
Core:OPN系,OPM:エンベロープ処理が完了すると元の音量に戻ってしまうのを修正
1 parent 1e39458 commit 9b28365

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

mml2vgm/CHANGE.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
�X�V����
2+
TAG763 2025/03/16 2nd
3+
Core:OPN�n,OPM:�G���x���[�v��������������ƌ��̉��ʂɖ߂��Ă��܂��̂��C��
4+
25
TAG762 2025/03/16
36
Core:�G���x���[�v:�p�����[�^��0���w�肵�����t���[�Y����o�O���C��
47
Core:OPN�n,OPM:@E�R�}���h���g�p�ł���悤�ɏC��

mml2vgm/Corex64/chips/YM2151.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,8 @@ public override void SetVolume(partPage page, MML mml)
575575

576576
if (page.envelopeMode)
577577
{
578-
if (page.envIndex != -1)
579-
{
580-
vol -= (127 - page.envVolume);
581-
}
578+
if (page.envIndex != -1) vol -= (127 - page.envVolume);
579+
else vol -= 127;
582580
}
583581

584582
if (page.beforeVolume != vol)

mml2vgm/Corex64/chips/clsOPN.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -2537,10 +2537,8 @@ public void SetFmVolume(partPage page, MML mml)
25372537

25382538
if (page.envelopeMode)
25392539
{
2540-
if (page.envIndex != -1)
2541-
{
2542-
vol -= (127 - page.envVolume);
2543-
}
2540+
if (page.envIndex != -1) vol -= (127 - page.envVolume);
2541+
else vol -= 127;
25442542
}
25452543

25462544
//if (page.spg.beforeVolume != vol)

mml2vgm_MMLCommandMemo.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@
762762
@In -------------------o----------------------------------- Duty比その他切り替え( Us:0-9)
763763
@n -----o-------------------------------------oo-----o---- PCM音色番号指定(0 - 255)(PCMモード時)
764764
@n -----o---o----oo---oo----o-----o-o-o-o--o-o------------ エンベロープ番号指定(0 - 255)
765-
@En ------o---oo---oo---ooo----ooooo-o-o-o--o-ooooooooo---- エンベロープ番号指定(0 - 255)
765+
@En -oo---ooo-oooo-oooo-ooooo-oooooo-o-o-o--o-ooooooooo---- エンベロープ番号指定(0 - 255)
766766
@Tn -oo----oo---oo---oo----oo-o---------------------------- Tone Doubler番号指定(0 - 255)
767767
@Nn -oo----oo---oo---oo----oo-o----------------oo---------- FMの音色を設定直前、何もしない(Default)
768768
@Rn -oo----oo---oo---oo----oo-o----------------oo---------- FMの音色を設定直前、消音の為にRR(ReleaseRate)に15をセットする

mmlCommandTable.md

+5
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,15 @@
331331
n : 0 ~ 255
332332
- Support chips
333333
- RF5C164
334+
- YM2151
335+
- YM2203(FM)
336+
- YM2610B(FM)
334337
- YM2610B(ADPCM-A)
335338
- YM2610B(ADPCM-B)
339+
- YM2608(FM)
336340
- YM2608(RHYTHM)
337341
- YM2608(ADPCM)
342+
- YM2609(FM)
338343
- YM2609(RHYTHM)
339344
- YM2609(ADPCM)
340345
- SEGAPCM

0 commit comments

Comments
 (0)