Skip to content

Commit

Permalink
调整音素边界时,固定当前片中的所有音符的音素
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYunPlayer committed Jun 8, 2024
1 parent 5176269 commit f9fc466
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions TuneLab/Views/PianoGridOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2365,9 +2365,17 @@ public void Down(double x, INote note, int index)
return;
}

if (index == 0)
var last = note.LastInSegment;
while (last != null)
{
note.LastInSegment?.LockPhonemes();
last.LockPhonemes();
last = last.LastInSegment;
}
var next = note.NextInSegment;
while (next != null)
{
next.LockPhonemes();
next = next.NextInSegment;
}

State = State.WaveformPhonemeResizing;
Expand Down

0 comments on commit f9fc466

Please sign in to comment.