move synthesizer into app struct

This commit is contained in:
sigil-03 2025-11-05 08:51:11 -07:00
parent b786bf174a
commit d3ccc70782
4 changed files with 87 additions and 26 deletions

View file

@ -14,7 +14,7 @@ use debounced_gpio::DebouncedGPIO;
// synthesizer :3
mod synthesizer;
use synthesizer::AppSynthesizers;
use synthesizer::SynthesizerService;
mod app;
use app::{
@ -262,10 +262,14 @@ fn app_main(mut p: hal::Peripherals) -> ! {
timers: timer_config,
};
// let square_wt = SimpleWavetable::new(&SQUARE_WAVETABLE);
// let square = SimpleWavetableSynthesizer::new(square_wt, tick_rate_hz);
let app_services = Services {
led0: LedService::new(led0_ch),
led1: LedService::new(led1_ch),
led2: LedService::new(led2_ch),
synth0: SynthesizerService::new(tick_rate_hz),
};
let app_sequences = Sequences {