pub struct WavePoint {
pub sample: f64,
pub value1: f64,
pub value2: f64,
pub x: f64,
pub y: f64,
pub r: f64,
pub g: f64,
pub b: f64,
pub a: f64,
}Expand description
One iteration of a custom-wave (or custom-shape) per-point loop. The same
struct is used for input (caller seeds the loop variables) and output
(evaluator reads x, y, r, g, b, a back from the context after
running the equations). sample, value1, value2 are inputs only.
Fields§
§sample: f64Normalised sample index in [0.0, 1.0] (or 0.0 when samples == 1).
value1: f64Left-channel value (raw audio sample, or FFT bin if b_spectrum).
value2: f64Right-channel value (mirrored from value1 with N/2 offset for mono).
x: f64§y: f64§r: f64§g: f64§b: f64§a: f64Trait Implementations§
impl Copy for WavePoint
impl StructuralPartialEq for WavePoint
Auto Trait Implementations§
impl Freeze for WavePoint
impl RefUnwindSafe for WavePoint
impl Send for WavePoint
impl Sync for WavePoint
impl Unpin for WavePoint
impl UnwindSafe for WavePoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more