Struct rea_rs::send::TrackReceive
source · [−]pub struct TrackReceive<'a, T: ProbablyMutable> { /* private fields */ }
Expand description
Send, that is child of destination track.
Trait Implementations
sourceimpl<'a, T: Debug + ProbablyMutable> Debug for TrackReceive<'a, T>
impl<'a, T: Debug + ProbablyMutable> Debug for TrackReceive<'a, T>
sourceimpl<'a, T: ProbablyMutable> GenericSend<'a, T> for TrackReceive<'a, T>
impl<'a, T: ProbablyMutable> GenericSend<'a, T> for TrackReceive<'a, T>
sourcefn parent_track(&self) -> &Track<'_, T>
fn parent_track(&self) -> &Track<'_, T>
Track, that receives.
fn new(track: &'a Track<'_, T>, index: usize) -> Self
fn index(&self) -> usize
sourcefn get_info_value(&self, param: impl Into<String>) -> f64
fn get_info_value(&self, param: impl Into<String>) -> f64
Core method to retrieve send properties.
With probability of 99% you shouldn’t use it. Read more
fn is_mute(&self) -> bool
sourcefn phase_flipped(&self) -> bool
fn phase_flipped(&self) -> bool
Phase flipped if true.
sourcefn is_mono(&self) -> bool
fn is_mono(&self) -> bool
Note, that mono parameter is not equal to SendDestChannels
and SendSourceChannels is_mono parameters. Read more
fn volume(&self) -> Volume
fn pan(&self) -> Pan
fn pan_law(&self) -> PanLaw
fn send_mode(&self) -> SendMode
fn automation_mode(&self) -> AutomationMode
sourcefn source_channels(&self) -> Option<SendSourceChannels>
fn source_channels(&self) -> Option<SendSourceChannels>
If
None
returned — the audio is off.sourcefn dest_channels(&self) -> Option<SendDestChannels>
fn dest_channels(&self) -> Option<SendDestChannels>
Returns
None
if source_channels are None
.sourcefn midi_properties(&self) -> Option<SendMIDIProps>
fn midi_properties(&self) -> Option<SendMIDIProps>
If
None
is returned — MIDI is off.fn dest_track(&'a self) -> Option<Track<'_, Immutable>>
fn source_track(&'a self) -> Option<Track<'_, Immutable>>
sourcefn get_envelope(
&'a self,
selector: impl Into<EnvelopeSelector>
) -> Option<Envelope<'_, Track<'_, T>, T>>
fn get_envelope(
&'a self,
selector: impl Into<EnvelopeSelector>
) -> Option<Envelope<'_, Track<'_, T>, T>>
sourceimpl<'a> GenericSendMut<'a> for TrackReceive<'a, Mutable>
impl<'a> GenericSendMut<'a> for TrackReceive<'a, Mutable>
sourcefn delete(self) -> ReaperResult<()>where
Self: Sized,
fn delete(self) -> ReaperResult<()>where
Self: Sized,
Remove send from track. This also drops the value. Read more
sourcefn set_info_value(
&mut self,
param: impl Into<String>,
value: f64
) -> ReaperResult<()>
fn set_info_value(
&mut self,
param: impl Into<String>,
value: f64
) -> ReaperResult<()>
Core method to set send properties.
With probability of 99% you shouldn’t use it. Read more
fn set_mute(&mut self, mute: bool) -> ReaperResult<()>
sourcefn set_phase(&mut self, phase: bool) -> ReaperResult<()>
fn set_phase(&mut self, phase: bool) -> ReaperResult<()>
Phase flipped if true.
fn set_mono(&mut self, mono: bool) -> ReaperResult<()>
fn set_volume(&mut self, volume: impl Into<Volume>) -> ReaperResult<()>
fn set_pan(&mut self, pan: impl Into<Pan>) -> ReaperResult<()>
fn set_pan_law(&mut self, pan_law: PanLaw) -> ReaperResult<()>
fn set_send_mode(&mut self, send_mode: SendMode) -> ReaperResult<()>
sourcefn set_automation_mode(
&mut self,
automation_mode: AutomationMode
) -> ReaperResult<()>
fn set_automation_mode(
&mut self,
automation_mode: AutomationMode
) -> ReaperResult<()>
Can not set Bypass
Use None for default track mode. Read more
sourcefn set_source_channels(
&mut self,
channels: Option<SendSourceChannels>
) -> ReaperResult<()>
fn set_source_channels(
&mut self,
channels: Option<SendSourceChannels>
) -> ReaperResult<()>
Pass
None
if want to turn audio off.sourcefn set_dest_channels(&mut self, channels: SendDestChannels) -> ReaperResult<()>
fn set_dest_channels(&mut self, channels: SendDestChannels) -> ReaperResult<()>
If source channels are off it will return
ReaperError::InvalidObject Read more
sourcefn set_midi_properties(
&mut self,
properties: impl Into<Option<SendMIDIProps>>
) -> ReaperResult<()>
fn set_midi_properties(
&mut self,
properties: impl Into<Option<SendMIDIProps>>
) -> ReaperResult<()>
Pass
None
if want to turn MIDI off.sourceimpl<'a, T: PartialEq + ProbablyMutable> PartialEq<TrackReceive<'a, T>> for TrackReceive<'a, T>
impl<'a, T: PartialEq + ProbablyMutable> PartialEq<TrackReceive<'a, T>> for TrackReceive<'a, T>
sourcefn eq(&self, other: &TrackReceive<'a, T>) -> bool
fn eq(&self, other: &TrackReceive<'a, T>) -> bool
sourceimpl<'a, T: ProbablyMutable> SendIntType for TrackReceive<'a, T>
impl<'a, T: ProbablyMutable> SendIntType for TrackReceive<'a, T>
impl<'a, T: ProbablyMutable> StructuralPartialEq for TrackReceive<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for TrackReceive<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for TrackReceive<'a, T>
impl<'a, T> !Sync for TrackReceive<'a, T>
impl<'a, T> Unpin for TrackReceive<'a, T>
impl<'a, T> UnwindSafe for TrackReceive<'a, T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more