pub struct PointOp {
Show 14 fields pub fm: Rational64, pub fa: Rational64, pub pm: Rational64, pub pa: Rational64, pub g: Rational64, pub l: Rational64, pub attack: Rational64, pub decay: Rational64, pub asr: ASR, pub portamento: Rational64, pub reverb: Option<Rational64>, pub osc_type: OscType, pub names: NameSet, pub filters: Vec<BiquadFilterDef>,
}

Fields§

§fm: Rational64

Frequency Multiply

§fa: Rational64

Frequency Add

§pm: Rational64

Pan Multiply

§pa: Rational64

Pan Add

§g: Rational64

Gain Multiply

§l: Rational64

Length Multiply

§attack: Rational64

Attack Length

§decay: Rational64

Decay Length

§asr: ASR

Attack/Sustain/Release Type

§portamento: Rational64

Portamento Length

§reverb: Option<Rational64>

Reverb Multiplier

§osc_type: OscType

Oscillator Type

§names: NameSet

Set of Names

§filters: Vec<BiquadFilterDef>

Filters

Implementations§

source§

impl PointOp

source

pub fn is_silent(&self) -> bool

source

pub fn silence(&mut self)

source

pub fn mod_by(&mut self, other: PointOp, l: Rational64)

source

pub fn init() -> PointOp

source

pub fn init_silent() -> PointOp

Trait Implementations§

source§

impl Clone for PointOp

source§

fn clone(&self) -> PointOp

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PointOp

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PointOp

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Hash for PointOp

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<'a, 'b> Mul<&'b PointOp> for &'a PointOp

§

type Output = PointOp

The resulting type after applying the * operator.
source§

fn mul(self, other: &'b PointOp) -> PointOp

Performs the * operation. Read more
source§

impl Mul<PointOp> for PointOp

§

type Output = PointOp

The resulting type after applying the * operator.
source§

fn mul(self, other: PointOp) -> PointOp

Performs the * operation. Read more
source§

impl MulAssign<PointOp> for PointOp

source§

fn mul_assign(&mut self, other: PointOp)

Performs the *= operation. Read more
source§

impl Ord for PointOp

source§

fn cmp(&self, other: &PointOp) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<PointOp> for PointOp

source§

fn eq(&self, other: &PointOp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<PointOp> for PointOp

source§

fn partial_cmp(&self, other: &PointOp) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for PointOp

source§

impl StructuralEq for PointOp

source§

impl StructuralPartialEq for PointOp

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V