From 205dc9dd675572c82421cbbbd3c2c5429106f540 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Sun, 22 Feb 2026 18:25:11 -0500 Subject: [PATCH] commit clipboard --- lightningbeam-ui/lightningbeam-core/src/clipboard.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lightningbeam-ui/lightningbeam-core/src/clipboard.rs b/lightningbeam-ui/lightningbeam-core/src/clipboard.rs index 7d92d0a..33c0996 100644 --- a/lightningbeam-ui/lightningbeam-core/src/clipboard.rs +++ b/lightningbeam-ui/lightningbeam-core/src/clipboard.rs @@ -75,6 +75,11 @@ pub enum ClipboardContent { /// Shapes (with embedded transforms) shapes: Vec, }, + /// MIDI notes from the piano roll + MidiNotes { + /// Notes: (start_time, note, velocity, duration) — times relative to selection start + notes: Vec<(f64, u8, u8, f64)>, + }, } impl ClipboardContent { @@ -165,6 +170,10 @@ impl ClipboardContent { id_map, ) } + ClipboardContent::MidiNotes { notes } => { + // No IDs to regenerate, just clone + (ClipboardContent::MidiNotes { notes: notes.clone() }, id_map) + } ClipboardContent::Shapes { shapes } => { // Regenerate shape IDs let new_shapes: Vec = shapes