mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-15 16:06:41 +01:00
wip: edn project format
This commit is contained in:
parent
14d9116c7c
commit
e2a842492e
12 changed files with 401 additions and 65 deletions
|
|
@ -16,11 +16,13 @@ pub mod core;
|
|||
pub mod model;
|
||||
pub mod view;
|
||||
pub mod jack;
|
||||
pub mod edn;
|
||||
|
||||
use crate::{core::*, model::*};
|
||||
|
||||
/// Application entrypoint.
|
||||
pub fn main () -> Usually<()> {
|
||||
|
||||
let mut app = App::default();
|
||||
|
||||
// Load config
|
||||
|
|
@ -75,6 +77,8 @@ pub fn main () -> Usually<()> {
|
|||
|
||||
state.jack = Some(jack);
|
||||
|
||||
state.load_edn(include_str!("../demos/project.edn"));
|
||||
|
||||
state.add_track_with_cb(Some("Drums"), |_, track|{
|
||||
|
||||
track.add_device_with_cb(Sampler::new("Sampler", Some(BTreeMap::from([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue