pub enum TrackSendAttributeKey<'a> {
Show 16 variants
DestTrack,
SrcTrack,
Env(EnvChunkName<'a>),
Ext(Cow<'a, CStr>),
Mute,
Phase,
Mono,
Vol,
Pan,
PanLaw,
SendMode,
AutoMode,
SrcChan,
DstChan,
MidiFlags,
Custom(Cow<'a, CStr>),
}
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, CStr>)
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, CStr>)
If a variant is missing in this enum, you can use this custom one as a resort.
Use custom()
to create this variant.
Implementations§
Source§impl<'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§
Source§impl<'a> Clone for TrackSendAttributeKey<'a>
impl<'a> Clone for TrackSendAttributeKey<'a>
Source§fn clone(&self) -> TrackSendAttributeKey<'a>
fn clone(&self) -> TrackSendAttributeKey<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more