Skip to content

Commit

Permalink
修复GEN错误
Browse files Browse the repository at this point in the history
  • Loading branch information
KCKT0112 committed Jun 23, 2024
1 parent 30dd6cf commit 2d21139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TuneLab/Extensions/Formats/VPR/VocaloidVprProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ public static ProjectInfo Deserialize(Stream stream)
{
if (i != 0 && (int)character[i]["pos"] - 1 != (int)character[i - 1]["pos"])
{
newCharacter.Points.Add(new Point((int)character[i]["pos"] - 1, RangeMapper((int)character[i - 1]["value"], -64, 64, -1.0, 1.0)));
newCharacter.Points.Add(new Point((int)character[i]["pos"] - 1, RangeMapper((int)character[i - 1]["value"], -64, 64, 1.0, -1.0)));
}
newCharacter.Points.Add(new Point((int)character[i]["pos"], RangeMapper((int)character[i]["value"], -64, 64, -1.0, 1.0)));
newCharacter.Points.Add(new Point((int)character[i]["pos"], RangeMapper((int)character[i]["value"], -64, 64, 1.0, -1.0)));
}
newCharacter.DefaultValue = 0.0;
midiPartInfo.Automations.Add("Gender", newCharacter);
Expand Down

0 comments on commit 2d21139

Please sign in to comment.