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
impl Looper
pub fn new(id: u32, parts: PartSet, gui_output: GuiSender) -> Looper
pub fn from_serialized( state: &SavedLooper, path: &Path, gui_output: GuiSender, ) -> Result<Looper, SaveLoadError>
pub fn channel(&self) -> Sender<ControlMessage>
pub fn start(self) -> Self
pub fn local_mode(&self) -> LooperMode
pub fn mode(&self) -> LooperMode
pub fn length(&self) -> u64
pub fn set_time(&mut self, time: FrameTime)
pub fn handle_command(&mut self, command: LooperCommand)
pub fn process_output( &mut self, time: FrameTime, outputs: &mut [&mut [f64]], part: Part, solo: bool, )
pub fn process_input( &mut self, time_in_samples: u64, inputs: &[&[f32]], part: Part, )
pub fn transition_to(&mut self, mode: LooperMode)
Trait Implementations§
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> 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
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