Feat: demo songs

This commit is contained in:
2026-02-22 23:50:35 +01:00
parent 40e69b66da
commit 057ba5b2f3
27 changed files with 25324 additions and 38 deletions

17
src/model/demos.rs Normal file
View File

@@ -0,0 +1,17 @@
pub struct DemoEntry {
pub name: &'static str,
pub json: &'static str,
}
pub const DEMOS: &[DemoEntry] = &[
DemoEntry { name: "Demo 01", json: include_str!("../../demos/01.cagire") },
DemoEntry { name: "Demo 02", json: include_str!("../../demos/02.cagire") },
DemoEntry { name: "Demo 03", json: include_str!("../../demos/03.cagire") },
DemoEntry { name: "Demo 04", json: include_str!("../../demos/04.cagire") },
DemoEntry { name: "Demo 05", json: include_str!("../../demos/05.cagire") },
DemoEntry { name: "Demo 06", json: include_str!("../../demos/06.cagire") },
DemoEntry { name: "Demo 07", json: include_str!("../../demos/07.cagire") },
DemoEntry { name: "Demo 08", json: include_str!("../../demos/08.cagire") },
DemoEntry { name: "Demo 09", json: include_str!("../../demos/09.cagire") },
DemoEntry { name: "Demo 10", json: include_str!("../../demos/10.cagire") },
];

View File

@@ -1,4 +1,5 @@
pub mod categories;
pub mod demos;
pub mod docs;
pub mod onboarding;
mod script;
@@ -8,8 +9,8 @@ pub use cagire_forth::{
Variables, Word, WordCompile, WORDS,
};
pub use cagire_project::{
load, save, Bank, FollowUp, LaunchQuantization, Pattern, PatternSpeed, Project, SyncMode,
MAX_BANKS, MAX_PATTERNS,
load, load_str, save, Bank, FollowUp, LaunchQuantization, Pattern, PatternSpeed, Project,
SyncMode, MAX_BANKS, MAX_PATTERNS,
};
pub use script::ScriptEngine;