Looper

Struct Looper 

Source
pub struct Looper {
    pub id: u32,
    pub deleted: bool,
    pub parts: PartSet,
    pub pan: f32,
    pub level: f32,
    pub pan_law: PanLaw,
    pub backend: Option<LooperBackend>,
    /* private fields */
}

Fields§

§id: u32§deleted: bool§parts: PartSet§pan: f32§level: f32§pan_law: PanLaw§backend: Option<LooperBackend>

Implementations§

Source§

impl Looper

Source

pub fn new(id: u32, parts: PartSet, gui_output: GuiSender) -> Looper

Source

pub fn from_serialized( state: &SavedLooper, path: &Path, gui_output: GuiSender, ) -> Result<Looper, SaveLoadError>

Source

pub fn channel(&self) -> Sender<ControlMessage>

Source

pub fn start(self) -> Self

Source

pub fn local_mode(&self) -> LooperMode

Source

pub fn mode(&self) -> LooperMode

Source

pub fn length(&self) -> u64

Source

pub fn set_time(&mut self, time: FrameTime)

Source

pub fn handle_command(&mut self, command: LooperCommand)

Source

pub fn process_output( &mut self, time: FrameTime, outputs: &mut [&mut [f64]], part: Part, solo: bool, )

Source

pub fn process_input( &mut self, time_in_samples: u64, inputs: &[&[f32]], part: Part, )

Source

pub fn transition_to(&mut self, mode: LooperMode)

Trait Implementations§

Source§

impl Drop for Looper

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl Freeze for Looper

§

impl !RefUnwindSafe for Looper

§

impl Send for Looper

§

impl Sync for Looper

§

impl Unpin for Looper

§

impl !UnwindSafe for Looper

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.