+
+
+
+
+
+
+ {!activeMidiRegion ? (
+
+ Please select a MIDI region, or open one in the Piano Roll, to view its event list.
+
+ ) : (
+ <>
+
+
+
+
+
+
+
+ {
+ setQuantPosition(value);
+ quantizeSelectedNotes(value);
+ }}
+ label="Qua. Pos."
+ buttonClassName="list-event-quant-button"
+ />
+ {
+ setQuantLength(value);
+ quantizeSelectedNoteLengths(value);
+ }}
+ label="Qua. Len."
+ buttonClassName="list-event-quant-button"
+ />
+
+
+
+
+
+
+
+ | Position |
+ Status |
+ Num |
+ Val |
+ Length/Info |
+
+
+
+ {noteRows.map((row, index) => (
+ (() => {
+ const positionText = formatEventPosition(row.absoluteStartBeat, timeSignature);
+ const statusText = 'Note';
+ const noteText = pitchToNoteNameString(row.note.getPitch());
+ const velocityText = String(row.note.getVelocity());
+ const lengthText = formatEventLength(row.durationBeats);
+
+ return (
+ handleRowClick(row.id, index, event)}
+ >
+ | {positionText} |
+ {statusText} |
+ {noteText} |
+ {velocityText} |
+ {lengthText} |
+
+ );
+ })()
+ ))}
+
+
+
+ >
+ )}
+