From c9c8fe4117a3634b50a6e7c6791d92da93124f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Sat, 21 Feb 2026 22:03:07 +0100 Subject: [PATCH] Feat: add wave word for drum synthesis --- Cargo.toml | 2 +- crates/forth/src/words/sound.rs | 10 ++++++++++ plugins/cagire-plugins/Cargo.toml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 11b0907..ec38a91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ cagire-forth = { path = "crates/forth" } cagire-markdown = { path = "crates/markdown" } cagire-project = { path = "crates/project" } cagire-ratatui = { path = "crates/ratatui" } -doux = { git = "https://github.com/Bubobubobubobubo/doux", features = ["native"] } +doux = { path = "/Users/bubo/doux", features = ["native"] } rusty_link = "0.4" ratatui = "0.30" crossterm = "0.29" diff --git a/crates/forth/src/words/sound.rs b/crates/forth/src/words/sound.rs index 750351a..eeef18f 100644 --- a/crates/forth/src/words/sound.rs +++ b/crates/forth/src/words/sound.rs @@ -215,6 +215,16 @@ pub(super) const WORDS: &[Word] = &[ compile: Param, varargs: true, }, + Word { + name: "wave", + aliases: &["waveform"], + category: "Oscillator", + stack: "(v.. --)", + desc: "Set drum waveform [0,1]: 0=sine, 0.5=tri, 1=saw", + example: "0.5 wave", + compile: Param, + varargs: true, + }, Word { name: "spread", aliases: &[], diff --git a/plugins/cagire-plugins/Cargo.toml b/plugins/cagire-plugins/Cargo.toml index 527809d..f540c15 100644 --- a/plugins/cagire-plugins/Cargo.toml +++ b/plugins/cagire-plugins/Cargo.toml @@ -14,7 +14,7 @@ cagire = { path = "../..", default-features = false, features = ["block-renderer cagire-forth = { path = "../../crates/forth" } cagire-project = { path = "../../crates/project" } cagire-ratatui = { path = "../../crates/ratatui" } -doux = { git = "https://github.com/Bubobubobubobubo/doux", features = ["native"] } +doux = { path = "/Users/bubo/doux", features = ["native"] } nih_plug = { git = "https://github.com/robbert-vdh/nih-plug", features = ["standalone"] } nih_plug_egui = { git = "https://github.com/robbert-vdh/nih-plug" } egui_ratatui = "2.1"