#[non_exhaustive]pub struct StepOutputs {
pub note: Option<u8>,
pub velocity: Option<u8>,
pub gate: bool,
pub scale_note: Option<u8>,
pub pulses: [bool; 6],
pub gates: [bool; 8],
pub div2: bool,
pub div4: bool,
pub noise_cc: u8,
pub register_bits: u16,
pub length: usize,
pub write_probability: f32,
}Expand description
Snapshot of all outputs produced by a single step of the Turing Machine.
Each field corresponds to a physical or virtual output jack on the
module. The struct is marked #[non_exhaustive] so that new outputs
can be added in future versions without a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.note: Option<u8>Quantized MIDI note number (0–127).
velocity: Option<u8>Velocity in the range 1–127, or None when the step is silent.
gate: boolPulse / gate output for the current step.
scale_note: Option<u8>Independently quantized MIDI note (may use a different scale).
pulses: [bool; 6]Six AND-gate outputs derived from register bits.
gates: [bool; 8]Per-bit gate outputs for the low eight bits of the register.
div2: boolClock divided by 2.
div4: boolClock divided by 4.
noise_cc: u8Random continuous-controller value in the range 0–127.
register_bits: u16Raw shift-register state.
length: usizeCurrently active loop length.
write_probability: f32Currently active write probability (0.0 = fully random, 1.0 = locked).
Trait Implementations§
Source§impl Clone for StepOutputs
impl Clone for StepOutputs
Source§fn clone(&self) -> StepOutputs
fn clone(&self) -> StepOutputs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more