[−][src]Enum reaper_medium::TrackAttributeKey
Track attribute key which you can pass to get_set_media_track_info()
.
Variants
Parent track (read-only).
*mut MediaTrack
Parent project (read-only).
*mut ReaProject
Track name (on master returns null_mut()
).
*mut char
Track icon.
*const char
Full file name or relative to resource path / data / track icons.
Layout name.
*const char
Layout name.
*const char
6-byte GUID, can query or update.
*mut GUID
If using a _string()
function, GUID is a string {xyz-...}
.
Muted.
*mut bool
Track phase inverted.
*mut bool
Track number
i32
1-based, read-only, returns the i32 directly.
- 0 → not found
- -1 → master track
Soloed.
*mut i32
- 0 → not soloed
- 1 → soloed
- 2 → soloed in place
- 5 → safe soloed
- 6 → safe soloed in place
FX enabled.
*mut i32
- 0 → bypassed
- != 0 → FX active
Record armed.
*mut i32
- 0 → not record armed
- 1 → record armed
Record input.
*mut i32
- <0 → no input
- 0..=n → mono hardware input
- 512 + n → rearoute input
- &1024 → stereo input pair
- &4096 → MIDI input, if set then low 5 bits represent channel (0 → all, 1 - 16 → only channel), next 6 bits represent physical input (63 → all, 62 → VKB)
Record mode.
*mut i32
- 0 → input
- 1 → stereo out
- 2 → none
- 3 → stereo out with latency compensation
- 4 → midi output
- 5 → mono out
- 6 → mono out with latency compensation
- 7 → MIDI overdub
- 8 → MIDI replace
Record monitoring.
*mut i32
- 0 → off
- 1 → normal
- 2 → not when playing (tape style)
Monitor items while recording.
*mut i32
- 0 → off
- 1 → on
Track automation mode.
*mut i32
- 0 → trim/off
- 1 → read
- 2 → touch
- 3 → write
- 4 → latch
Number of track channels.
*mut i32
2 - 64, even numbers only.
Track selected.
*mut i32
- 0 → unselected
- 1 → selected
Current TCP window height in pixels including envelopes (read-only).
*mut i32
Current TCP window height in pixels not including envelopes (read-only).
*mut i32
Current TCP window Y-position in pixels relative to top of arrange view (read-only).
*mut i32
Current MCP X-position in pixels relative to mixer container.
*mut i32
Current MCP Y-position in pixels relative to mixer container.
*mut i32
Current MCP width in pixels.
*mut i32
Current MCP height in pixels.
*mut i32
Folder depth change.
*mut i32
- 0 → normal
- 1 → track is a folder parent
- -1 → track is the last in the innermost folder
- -2 → track is the last in the innermost and next-innermost folders
- ...
Folder compacted state (only valid on folders).
*mut i32
- 0 → normal
- 1 → small
- 2 → tiny children
Track midi hardware output index.
*mut i32
Low 5 bits are which channels (1..=16, 0 → all), next 5 bits are output device index (0..=31). < 0 means disabled.
Track performance flags.
*mut i32
&1 → no media buffering &2 → no anticipative FX
Custom color.
*mut i32
<OS dependent color> | 0x100000
(i.e. ColorToNative(r, g, b) | 0x100000
).
If you don't do | 0x100000
, then it will not be used, but will store the color anyway.
Custom height override for TCP window.
*mut i32
0 for none, otherwise size in pixels.
Trim volume of track.
*mut f64
- 0 → -inf
- 0.5 → -6dB
- 1 → +0dB
- 2 → +6dB
- ...
Trim pan of track
*mut f64
-1..=1.
Width of track
*mut f64
-1..=1.
Pan mode.
*mut i32
- 0 → classic 3.x
- 3 → new balance
- 5 → stereo pan
- 6 → dual pan
Pan law.
*mut f64
- < 0 → project default
- 1 → +0 dB
- ...
Env(EnvChunkName<'a>)
TrackEnvelope (read only).
*mut TrackEnvelope
Track control panel visible in mixer.
*mut bool
Do not use on master track.
Track control panel visible in arrange view.
*mut bool
Do not use on master track.
Track sends audio to parent.
*mut bool
Channel offset of track send to parent.
*mut char
Track timebase.
*mut char
- -1 → project default
- 0 → time
- 1 → beats (position, length, rate)
- 2 → beats (position only)
Scale of FX and send area in MCP.
*mut f32
- 0 → minimum allowed
- 1 → maximum allowed
Scale of send area as proportion of the FX and send total area.
*mut f32
- 0 → minimum allowed
- 1 → maximum allowed
Track playback offset state.
*mut i32
- &1 → bypassed
- &2 → offset
Value is measured in samples (otherwise measured in seconds).
If a variant is missing in this enum, you can use this custom one as a resort.
Use custom()
to create this variant.
Implementations
impl<'a> TrackAttributeKey<'a>
[src]
pub fn ext(key: impl Into<ReaperStringArg<'a>>) -> TrackAttributeKey<'a>
[src]
Convenience function for creating an Ext
key.
pub fn custom(key: impl Into<ReaperStringArg<'a>>) -> TrackAttributeKey<'a>
[src]
Convenience function for creating a Custom
key.
Trait Implementations
impl<'a> Clone for TrackAttributeKey<'a>
[src]
fn clone(&self) -> TrackAttributeKey<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for TrackAttributeKey<'a>
[src]
impl<'a> Eq for TrackAttributeKey<'a>
[src]
impl<'a> Hash for TrackAttributeKey<'a>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> PartialEq<TrackAttributeKey<'a>> for TrackAttributeKey<'a>
[src]
fn eq(&self, other: &TrackAttributeKey<'a>) -> bool
[src]
fn ne(&self, other: &TrackAttributeKey<'a>) -> bool
[src]
impl<'a> StructuralEq for TrackAttributeKey<'a>
[src]
impl<'a> StructuralPartialEq for TrackAttributeKey<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for TrackAttributeKey<'a>
impl<'a> Send for TrackAttributeKey<'a>
impl<'a> Sync for TrackAttributeKey<'a>
impl<'a> Unpin for TrackAttributeKey<'a>
impl<'a> UnwindSafe for TrackAttributeKey<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,