pub enum TrackSendAttributeKey<'a> {
Show 16 variants
DestTrack,
SrcTrack,
Env(EnvChunkName<'a>),
Ext(Cow<'a, ReaperStr>),
Mute,
Phase,
Mono,
Vol,
Pan,
PanLaw,
SendMode,
AutoMode,
SrcChan,
DstChan,
MidiFlags,
Custom(Cow<'a, ReaperStr>),
}
Expand description
Track send attribute key which you can pass to get_set_track_send_info()
.
Variants
DestTrack
Destination track (read-only).
*mut MediaTrack
Only applies for sends/receives.
SrcTrack
Source track (read-only).
*mut MediaTrack
Only applies for sends/receives.
Env(EnvChunkName<'a>)
Corresponding track send envelope.
*mut TrackEnvelope
Ext(Cow<'a, ReaperStr>)
Mute
Muted.
*mut bool
Phase
Phase.
*mut bool
true
to flip phase.
Mono
Mono.
*mut bool
Vol
Volume.
*mut f64
1.0 → +0 dB etc.
Pan
Pan.
*mut f64
-1..=1
PanLaw
Pan law.
*mut f64
- 1.0 → +0.0 dB
- 0.5 → -6 dB
- -1.0 → value defined in project
SendMode
Send mode.
*mut i32
- 0 → post-fader
- 1 → pre-fx
- 2 → post-fx (deprecated)
- 3 → post-fx
AutoMode
Automation mode.
*mut i32
- -1 → use track automation mode
- 0 → trim/off
- 1 → read
- 2 → touch
- 3 → write
- 4 → latch
SrcChan
Source channel.
*mut i32
Index, &1024 → mono, -1 → none
DstChan
Destination channel.
*mut i32
Index, &1024 → mono, otherwise stereo pair, hwout: &512 → rearoute
MidiFlags
MIDI flags.
*mut i32
- Low 5 bits → source channel (0 → all, 1..=16)
- Next 5 bits → destination channel (0 → original, 1..=16)
Custom(Cow<'a, ReaperStr>)
If a variant is missing in this enum, you can use this custom one as a resort.
Use custom()
to create this variant.
Implementations
sourceimpl<'a> TrackSendAttributeKey<'a>
impl<'a> TrackSendAttributeKey<'a>
sourcepub fn ext(key: impl Into<ReaperStringArg<'a>>) -> TrackSendAttributeKey<'a>
pub fn ext(key: impl Into<ReaperStringArg<'a>>) -> TrackSendAttributeKey<'a>
Convenience function for creating an Ext
key.
sourcepub fn custom(key: impl Into<ReaperStringArg<'a>>) -> TrackSendAttributeKey<'a>
pub fn custom(key: impl Into<ReaperStringArg<'a>>) -> TrackSendAttributeKey<'a>
Convenience function for creating a Custom
key.
Trait Implementations
sourceimpl<'a> Clone for TrackSendAttributeKey<'a>
impl<'a> Clone for TrackSendAttributeKey<'a>
sourcefn clone(&self) -> TrackSendAttributeKey<'a>
fn clone(&self) -> TrackSendAttributeKey<'a>
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<'a> Debug for TrackSendAttributeKey<'a>
impl<'a> Debug for TrackSendAttributeKey<'a>
sourceimpl<'a> Hash for TrackSendAttributeKey<'a>
impl<'a> Hash for TrackSendAttributeKey<'a>
sourceimpl<'a> PartialEq<TrackSendAttributeKey<'a>> for TrackSendAttributeKey<'a>
impl<'a> PartialEq<TrackSendAttributeKey<'a>> for TrackSendAttributeKey<'a>
sourcefn eq(&self, other: &TrackSendAttributeKey<'a>) -> bool
fn eq(&self, other: &TrackSendAttributeKey<'a>) -> bool
impl<'a> Eq for TrackSendAttributeKey<'a>
impl<'a> StructuralEq for TrackSendAttributeKey<'a>
impl<'a> StructuralPartialEq for TrackSendAttributeKey<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrackSendAttributeKey<'a>
impl<'a> Send for TrackSendAttributeKey<'a>
impl<'a> Sync for TrackSendAttributeKey<'a>
impl<'a> Unpin for TrackSendAttributeKey<'a>
impl<'a> UnwindSafe for TrackSendAttributeKey<'a>
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
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>
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>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more