Files
chasse20 d318484b41 Checkpoint native SBS primitive workflow
Replace the legacy Rust procedural library with clean-room native primitives, typed function execution and FX-Map graphs. Save supported content as native SBS and organize the model, evaluators, codecs and editors into focused modules.

Add shared graph editing behavior, flat filtered node menus, frame and comment editing, named Explorer outputs and an original atomic sample. Document the tested scope and remaining interoperability work.
2026-11-05 18:23:06 -05:00

20 lines
596 B
Rust

use crate::{Session, core};
/// A fresh, unsaved package with one empty graph, used at desktop and browser startup
pub fn new_session() -> Session {
let mut pkg = core::Package::new("Untitled package");
pkg.graphs.push(core::Graph::new("New_graph"));
Session::new(pkg)
}
pub fn sample_session() -> Session {
match crate::atomic_sample() {
Ok(package) => Session::new(package),
Err(error) => {
let mut session = new_session();
session.log.push(format!("Could not create the atomic sample: {error}"));
session
}
}
}