[][src]Struct oscen::operators::Modulator

pub struct Modulator { /* fields omitted */ }

A Modulator is designed to be the input to the hz field of a carrier wave. It takes control of the carriers frequency and modulates it's base hz by adding mod_idx * mod_hz * output of modulator wave.

Implementations

impl Modulator[src]

pub fn new(wave: Tag) -> Self[src]

pub fn wave<T: Into<In>>(&mut self, arg: T) -> &mut Self[src]

pub fn base_hz<T: Into<In>>(&mut self, arg: T) -> &mut Self[src]

pub fn mod_hz<T: Into<In>>(&mut self, arg: T) -> &mut Self[src]

pub fn mod_idx<T: Into<In>>(&mut self, arg: T) -> &mut Self[src]

Trait Implementations

impl Builder for Modulator[src]

impl Clone for Modulator[src]

impl Copy for Modulator[src]

impl<'_> Index<&'_ str> for Modulator[src]

type Output = In

The returned type after indexing.

impl<'_> IndexMut<&'_ str> for Modulator[src]

impl Signal for Modulator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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