Feat: demo songs
This commit is contained in:
17
src/model/demos.rs
Normal file
17
src/model/demos.rs
Normal 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") },
|
||||
];
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user