Euclidean + hue rotation

This commit is contained in:
2026-02-02 13:25:27 +01:00
parent 7348bd38b1
commit d54d9218c1
21 changed files with 1338 additions and 53 deletions

View File

@@ -41,6 +41,32 @@ impl PatternPropsField {
}
}
#[derive(Clone, Copy, PartialEq, Eq, Default)]
pub enum EuclideanField {
#[default]
Pulses,
Steps,
Rotation,
}
impl EuclideanField {
pub fn next(&self) -> Self {
match self {
Self::Pulses => Self::Steps,
Self::Steps => Self::Rotation,
Self::Rotation => Self::Rotation,
}
}
pub fn prev(&self) -> Self {
match self {
Self::Pulses => Self::Pulses,
Self::Steps => Self::Pulses,
Self::Rotation => Self::Steps,
}
}
}
pub struct EditorContext {
pub bank: usize,
pub pattern: usize,