Group nodes

This commit is contained in:
Skyler Lehmkuhl
2026-02-16 03:33:32 -05:00
parent ffe7799b6a
commit 0bd933fd45
11 changed files with 1261 additions and 137 deletions
@@ -215,4 +215,9 @@ impl GraphBackend for AudioGraphBackend {
Ok(())
}
fn query_template_state(&self, voice_allocator_id: u32) -> Result<String, String> {
let mut controller = self.audio_controller.lock().unwrap();
controller.query_template_state(self.track_id, voice_allocator_id)
}
}
@@ -79,6 +79,9 @@ pub trait GraphBackend: Send {
input_node: BackendNodeId,
input_port: usize,
) -> Result<(), String>;
/// Get the state of a VoiceAllocator's template graph as JSON
fn query_template_state(&self, voice_allocator_id: u32) -> Result<String, String>;
}
/// Serializable graph state (for presets and save/load)
@@ -863,7 +863,7 @@ impl NodeTemplateIter for AllNodeTemplates {
NodeTemplate::Oscilloscope,
// Advanced
NodeTemplate::VoiceAllocator,
NodeTemplate::Group,
// Note: Group is not in the node finder — groups are created via Ctrl+G selection.
// Note: TemplateInput/TemplateOutput are excluded from the default finder.
// They are added dynamically when editing inside a subgraph.
// Outputs
File diff suppressed because it is too large Load Diff