Skip to content

Commit

Permalink
TAG754 2024/12/8 2nd
Browse files Browse the repository at this point in the history
  Core:PartCounter:.gwi:PPコマンド修正。
  Core:OPN系(OPNA2除く):yXXコマンドCh3Ex向け修正。
    参照パラメータがEXパート同士で共有されません。
    音色部分適応機能の考慮はしません。(これはCh3Ex以外でも同じ)
  • Loading branch information
kumatan committed Dec 8, 2024
1 parent 8b24b35 commit 93f9483
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 4 deletions.
6 changes: 6 additions & 0 deletions mml2vgm/CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
�X�V����
TAG754 2024/12/8 2nd
Core:PartCounter:.gwi:PP�R�}���h�C���B
Core:OPN�n(OPNA2����):yXX�R�}���hCh3Ex�����C���B
�Q�ƃp�����[�^��EX�p�[�g���m�ŋ��L����܂���B
���F�����K���@�\�̍l���͂��܂���B(�����Ch3Ex�ȊO�ł�����)

TAG753 2024/12/8
Core:PartCounter:.gwi:PP�R�}���h�lj��B�p�[�g�̕\�������w��ł��܂��B

Expand Down
37 changes: 37 additions & 0 deletions mml2vgm/Corex64/chips/clsOPN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,44 @@ public void OutFmSetInstrument(partPage page, MML mml, int n, int vol, char type
break;
}


//現在の音色のパラメータを記憶する(yコマンドで参照される)
page.currentInstrument = CopyInstrument(parent.instFM[n]);
if (!(page.chip is YM2609))
{
if (isDef && (page.ch == 2 || page.ch == m + 3 || page.ch == m + 4 || page.ch == m + 5))
{
page.chip.lstPartWork[2].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[m + 3].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[m + 4].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[m + 5].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
}
}
else
{
if (page.chip.lstPartWork[2].cpg.Ch3SpecialMode && page.ch >= 12 && page.ch < 15)
{
if (isDef)
{
page.chip.lstPartWork[2].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[12].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[13].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[14].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
}
}
if (page.chip.lstPartWork[8].cpg.Ch3SpecialMode && page.ch >= 15 && page.ch < 18)
{
if (isDef)
{
page.chip.lstPartWork[8].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[15].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[16].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
page.chip.lstPartWork[17].cpg.currentInstrument = CopyInstrument(parent.instFM[n]);
}
}
}



if (!(page.chip is YM2612X2))
{
Expand Down
2 changes: 1 addition & 1 deletion mml2vgm/mml2vgmIDEx64/MMLParameter/Instrument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public Instrument(int n, SoundManager.Chip chip, Setting setting,MIDIKbd midiKbd
volMode[i] = 0;
beforeTie[i] = false;
partColor[i] = 1;
partPriority[i] = 100;
partPriority[i] = i;
}
TraceInfoOld = new outDatum[n];
this.chip = chip;
Expand Down
2 changes: 1 addition & 1 deletion mml2vgm/mml2vgmIDEx64/form/FrmPartCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public FrmPartCounter(Setting setting)
{
InitializeComponent();
this.setting = setting;
comparer=new PartRowComparer(SortOrder.Descending);
comparer=new PartRowComparer(SortOrder.Ascending);

dgvPartCounter.BackgroundColor = Color.FromArgb(setting.ColorScheme.PartCounter_BackColor);
dgvPartCounter.DefaultCellStyle.BackColor = Color.FromArgb(setting.ColorScheme.PartCounter_BackColor);
Expand Down
4 changes: 2 additions & 2 deletions mml2vgm_MMLCommandMemo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,8 @@ ___ -oooooooooooooooooooooooooooooooooooooooooooooooooooooo 局所
PCn ooooooooooooooooooooooooooooooooooooooooooooooooooooooo パートカラー(0 - 63 def:1)IDEのパート色を指定する。
0:黒 1:青 2:赤 3:紫 4:緑 5:水 6:黄 7:白
8:muap風味色 9-15:最大音量時、赤になる。 16以降63までは繰り返し
PPn ooooooooooooooooooooooooooooooooooooooooooooooooooooooo パート表示優先度(0 - 65535 def:100)
partcounter画面での表示順を変更する。値が大きいほど上に表示されます(重いです)
PPn ooooooooooooooooooooooooooooooooooooooooooooooooooooooo パート表示優先度(0 - 65535 def:行番号(0始まり))
partcounter画面での表示順を変更する。値が小さいほど上に表示されます(処理重いです)

c -oooooooooooooooooooooooooooooooooooooooooooooooooooooo 音符ド
d -oooooooooooooooooooooooooooooooooooooooooooooooooooooo 音符レ
Expand Down

0 comments on commit 93f9483

Please sign in to comment.