Skip to content

Commit

Permalink
5.6.8.1 Fixed XGM/XGM2 Recording.
Browse files Browse the repository at this point in the history
	Fixed an issue where pressing the Enter key would unintentionally close the editor window.
	Fixed sequential numbering of saved file names
  • Loading branch information
110-kenichi committed Apr 2, 2024
1 parent 726d29d commit e447025
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
5 changes: 3 additions & 2 deletions README.md
@@ -1,4 +1,4 @@
MAmidiMEmo 5.6.8.0 Itoken (c)2019, 2024 / GPL-2.0
MAmidiMEmo 5.6.8.1 Itoken (c)2019, 2024 / GPL-2.0

*** What is the MAmidiMEmo? ***

Expand Down Expand Up @@ -274,7 +274,8 @@ e.g.) YM2151 has 8ch FM sounds, so you can play 8 chords on MIDI 1ch or sharing
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SNQ9JE3JAQMNQ)

*** Changes ***
5.6.8.1 Fixed an issue where pressing the Enter key would unintentionally close the editor window.
5.6.8.1 Fixed XGM/XGM2 Recording.
Fixed an issue where pressing the Enter key would unintentionally close the editor window.
Fixed sequential numbering of saved file names
5.6.8.0 Fixed play status icon in LCD area does not change after playing stopped.
Remembered FM register patch file path information for FM Timbre.
Expand Down
2 changes: 1 addition & 1 deletion src/mamidimemo/Program.cs
Expand Up @@ -41,7 +41,7 @@ public static class Program
/// <summary>
///
/// </summary>
public const string FILE_VERSION = "5.6.8.0";
public const string FILE_VERSION = "5.6.8.1";

public const string FILE_COPYRIGHT = @"Virtual chiptune sound MIDI module ""MAmidiMEmo"" Version {0}
Copyright(C) 2019, 2024 Itoken.All rights reserved.";
Expand Down
8 changes: 1 addition & 7 deletions src/mamidimemo/Util/XGM2Writer.cs
Expand Up @@ -315,13 +315,7 @@ public void RecordStop(bool endMark)
}
else
{
byte[] dacData = (byte[])((byte[])writeData.Tag["PcmData"]).Clone();
for (int pi = 0; pi < dacData.Length; pi++)
{
int val = dacData[pi] - 0x80;
dacData[pi] = (byte)val;
}
pcmDataTable.Add(pcmId, dacData);
pcmDataTable.Add(pcmId, writeData.Tag["PcmData"]);
}
pcmIndexTable.Add(writeData.Tag["PcmData"], pcmId++);
}
Expand Down
11 changes: 4 additions & 7 deletions src/mamidimemo/Util/XGMWriter.cs
Expand Up @@ -120,6 +120,9 @@ public void RecordStart(string outputDir, uint unitNumber)
previousMidiEventTicks = -1;
currentMidiEventTicks = -1;
lastWriteTicks = 0;

targetYM2612.ResetAll();
targetSN76496.ResetAll();
#if DEBUG_PRINT
startXGM = false;
sb = new StringBuilder();
Expand Down Expand Up @@ -314,13 +317,7 @@ public void RecordStop(bool endMark)
}
else
{
byte[] dacData = (byte[])((byte[])writeData.Tag["PcmData"]).Clone();
for (int pi = 0; pi < dacData.Length; pi++)
{
int val = dacData[pi] - 0x80;
dacData[pi] = (byte)val;
}
pcmDataTable.Add(pcmId, dacData);
pcmDataTable.Add(pcmId, writeData.Tag["PcmData"]);
}
pcmIndexTable.Add(writeData.Tag["PcmData"], pcmId++);
}
Expand Down

0 comments on commit e447025

Please sign in to comment.