Skip to content

Commit 15ebc8a

Browse files
fmt
1 parent a7823aa commit 15ebc8a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/sing/stateMachine/sequencerStateMachine.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ type StoreActions = {
7272

7373
type Context = ComputedRefs & Refs & { readonly storeActions: StoreActions };
7474

75-
type State = IdleState | AddNoteState | MoveNoteState | ResizeNoteLeftState | ResizeNoteRightState;
75+
type State =
76+
| IdleState
77+
| AddNoteState
78+
| MoveNoteState
79+
| ResizeNoteLeftState
80+
| ResizeNoteRightState;
7681

7782
const getGuideLineTicks = (
7883
cursorPos: PositionOnSequencer,
@@ -701,9 +706,10 @@ class ResizeNoteRightState implements IState<State, Input, Context> {
701706
for (const note of previewNotes) {
702707
const targetNoteAtStart = getOrThrow(targetNotesAtStart, note.id);
703708
const notePos = targetNoteAtStart.position;
704-
const noteEndPos = targetNoteAtStart.position + targetNoteAtStart.duration;
709+
const noteEndPos =
710+
targetNoteAtStart.position + targetNoteAtStart.duration;
705711
const duration = Math.max(snapTicks, noteEndPos + movingTicks - notePos);
706-
712+
707713
if (note.duration !== duration) {
708714
editedNotes.set(note.id, { ...note, duration });
709715
}

0 commit comments

Comments
 (0)