This commit is contained in:
2026-01-21 17:05:30 +01:00
commit 67322381c3
59 changed files with 10421 additions and 0 deletions

21
src/state/playback.rs Normal file
View File

@@ -0,0 +1,21 @@
use crate::engine::PatternChange;
pub struct PlaybackState {
pub playing: bool,
pub queued_changes: Vec<PatternChange>,
}
impl Default for PlaybackState {
fn default() -> Self {
Self {
playing: true,
queued_changes: Vec::new(),
}
}
}
impl PlaybackState {
pub fn toggle(&mut self) {
self.playing = !self.playing;
}
}