pub struct Blend2D {
pub x_values: Vec<f32>,
pub y_values: Vec<f32>,
pub plays: Vec<ClipPlay>,
pub sync: bool,
/* private fields */
}Expand description
A 2D blendspace: members on a regular grid over two parameters, weighted
bilinearly across the four members surrounding the parameter point.
plays is row-major: plays[iy * x_values.len() + ix] sits at
(x_values[ix], y_values[iy]).
Fields§
§x_values: Vec<f32>Grid positions along the X parameter, ascending.
y_values: Vec<f32>Grid positions along the Y parameter, ascending.
plays: Vec<ClipPlay>Members in row-major grid order.
sync: boolWhether members play phase-synchronised.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blend2D
impl RefUnwindSafe for Blend2D
impl Send for Blend2D
impl Sync for Blend2D
impl Unpin for Blend2D
impl UnsafeUnpin for Blend2D
impl UnwindSafe for Blend2D
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more