Load factory preset instruments

This commit is contained in:
Skyler Lehmkuhl
2025-10-28 04:19:05 -04:00
parent f1bcf16ddc
commit 8e6ea82f92
13 changed files with 1439 additions and 103 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
pub mod types;
pub use types::{AudioEvent, Command};
pub use types::{AudioEvent, Command, Query, QueryResponse};
+16
View File
@@ -197,3 +197,19 @@ pub enum AudioEvent {
/// Graph state changed (for full UI sync)
GraphStateChanged(TrackId),
}
/// Synchronous queries sent from UI thread to audio thread
#[derive(Debug)]
pub enum Query {
/// Get the current graph state as JSON (track_id)
GetGraphState(TrackId),
/// Get a voice allocator's template graph state as JSON (track_id, voice_allocator_id)
GetTemplateState(TrackId, u32),
}
/// Responses to synchronous queries
#[derive(Debug)]
pub enum QueryResponse {
/// Graph state as JSON string
GraphState(Result<String, String>),
}