piano roll and clip resizing fixes

This commit is contained in:
Skyler Lehmkuhl
2026-02-21 18:45:46 -05:00
parent 16011e5f28
commit 4122fda954
6 changed files with 300 additions and 59 deletions
+6
View File
@@ -2507,6 +2507,12 @@ impl Engine {
Err(e) => QueryResponse::ProjectSet(Err(format!("Failed to rebuild audio graphs: {}", e))),
}
}
Query::DuplicateMidiClipSync(clip_id) => {
match self.project.midi_clip_pool.duplicate_clip(clip_id) {
Some(new_id) => QueryResponse::MidiClipDuplicated(Ok(new_id)),
None => QueryResponse::MidiClipDuplicated(Err(format!("MIDI clip {} not found", clip_id))),
}
}
};
// Send response back
+4
View File
@@ -405,6 +405,8 @@ pub enum Query {
GetProject,
/// Set the project (replaces current project state)
SetProject(Box<crate::audio::project::Project>),
/// Duplicate a MIDI clip in the pool, returning the new clip's ID
DuplicateMidiClipSync(MidiClipId),
}
/// Oscilloscope data from a node
@@ -478,4 +480,6 @@ pub enum QueryResponse {
ProjectRetrieved(Result<Box<crate::audio::project::Project>, String>),
/// Project set
ProjectSet(Result<(), String>),
/// MIDI clip duplicated (returns new clip ID)
MidiClipDuplicated(Result<MidiClipId, String>),
}