Skip to content

Commit

Permalink
AAAAA
Browse files Browse the repository at this point in the history
fixed the swapnotes thing swapping all notes in the previous amount of sections. oops
  • Loading branch information
JordanSantiagoYT committed Oct 15, 2024
1 parent c424d25 commit 5124916
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/editors/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,6 @@ class ChartingState extends MusicBeatState
{
var strum = note[0] + Conductor.stepCrochet * (getSectionBeats(daSec) * 4 * value);


var copiedNote:Array<Dynamic> = [strum, note[1], note[2], note[3]];
_song.notes[daSec].sectionNotes.push(copiedNote);
}
Expand Down Expand Up @@ -1294,8 +1293,9 @@ class ChartingState extends MusicBeatState
{
var strum = note[0] + Conductor.stepCrochet * (getSectionBeats(daSec - value1) * 4 * value1);

if (swapNotes) note[1] = (note[1] + 4) % 8;
var copiedNote:Array<Dynamic> = [strum, note[1], note[2], note[3]];
var data = note[1];
if (swapNotes) data = Std.int(note[1] + 4) % 8;
var copiedNote:Array<Dynamic> = [strum, data, note[2], note[3]];
inline _song.notes[daSec].sectionNotes.push(copiedNote);
}
if (curSection - value1 < 0)
Expand Down Expand Up @@ -1338,8 +1338,9 @@ class ChartingState extends MusicBeatState
{
var strum = note[0] + Conductor.stepCrochet * (getSectionBeats(curSec-1) * 4);

if (swapNotes) note[1] = (note[1] + 4) % 8;
var copiedNote:Array<Dynamic> = [strum, note[1], note[2], note[3]];
var data = note[1];
if (swapNotes) data = Std.int(note[1] + 4) % 8;
var copiedNote:Array<Dynamic> = [strum, data, note[2], note[3]];
_song.notes[curSec].sectionNotes.push(copiedNote);
}
}
Expand Down

0 comments on commit 5124916

Please sign in to comment.