Euclidean + hue rotation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user