Skip to content

Commit

Permalink
5.6.8.2 Fixed XGM2 PCM.
Browse files Browse the repository at this point in the history
  • Loading branch information
110-kenichi committed Apr 2, 2024
1 parent e447025 commit 994f740
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,4 @@
MAmidiMEmo 5.6.8.1 Itoken (c)2019, 2024 / GPL-2.0
MAmidiMEmo 5.6.8.2 Itoken (c)2019, 2024 / GPL-2.0

*** What is the MAmidiMEmo? ***

Expand Down Expand Up @@ -274,6 +274,7 @@ 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.2 Fixed XGM2 PCM.
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
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.1";
public const string FILE_VERSION = "5.6.8.2";

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: 7 additions & 1 deletion src/mamidimemo/Util/XGM2Writer.cs
Expand Up @@ -315,7 +315,13 @@ public void RecordStop(bool endMark)
}
else
{
pcmDataTable.Add(pcmId, writeData.Tag["PcmData"]);
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);
}
pcmIndexTable.Add(writeData.Tag["PcmData"], pcmId++);
}
Expand Down

0 comments on commit 994f740

Please sign in to comment.