feat: added edit MIDI notes' attribute feature

This commit is contained in:
Xiaohan-Tian
2026-05-02 18:49:23 -07:00
parent 90aee14265
commit 7b74687daf
7 changed files with 502 additions and 8 deletions
@@ -211,6 +211,7 @@ const PianoRollContent: React.FC<PianoRollContentProps> = ({
top={parseFloat(tempStyle.top as string)}
width={parseFloat(tempStyle.width as string)}
height={noteHeight}
velocity={note.getVelocity()}
onResizeStart={handleNoteResizeStart}
onResize={handleNoteResize}
onResizeEnd={handleNoteResizeEnd}
@@ -221,7 +222,7 @@ const PianoRollContent: React.FC<PianoRollContentProps> = ({
/>
);
}
return (
<PianoNote
key={`note-${noteId}`}
@@ -231,6 +232,7 @@ const PianoRollContent: React.FC<PianoRollContentProps> = ({
top={top}
width={width}
height={noteHeight}
velocity={note.getVelocity()}
onResizeStart={handleNoteResizeStart}
onResize={handleNoteResize}
onResizeEnd={handleNoteResizeEnd}