pub struct Strip<'a> { /* private fields */ }
Available on crate feature interface only.
Expand description

Parameters for a strip.

A strip is a physical or virtual input.

Returned by VoicemeeterRemote::parameters().strip(i)

§Example

use voicemeeter::VoicemeeterRemote;

// Get the client.
let remote = VoicemeeterRemote::new()?;

// Get the label of strip 1 (index 0)
println!("{}", remote.parameters().strip(0)?.label().get()?);
// Set strip 3 (index 2) to output to A1
remote.parameters().strip(2)?.a1().set(true)?;

// Ensure the change is registered.
remote.is_parameters_dirty()?;

// We need to sleep here because otherwise the change won't be registered,
// in a long running program this is not needed.
std::thread::sleep(std::time::Duration::from_millis(50));

Implementations§

source§

impl<'a> Strip<'a>

source

pub fn param(&self, dot: impl Display) -> Cow<'static, ParameterNameRef>

Get the identifier for a parameter on this strip: Strip[i].{dot}

source

pub fn is_physical(&self) -> bool

Strip is physical

source

pub fn is_virtual(&self) -> bool

Strip is virtual

source

pub fn mono(&self) -> BoolParameter<'_>

Mono Button

source

pub fn mute(&self) -> BoolParameter<'_>

Mute Button

source

pub fn solo(&self) -> BoolParameter<'_>

Solo Button

source

pub fn mute_center(&self) -> BoolParameter<'_>

Mute Center Button

source

pub fn gain(&self) -> FloatParameter<'_>

Gain slider

source

pub fn gain_layer(&self, layer: impl Into<ZIndex>) -> FloatParameter<'_>

Gain slider for a bus

source

pub fn pan_x(&self) -> FloatParameter<'_>

Pan in x direction

source

pub fn pan_y(&self) -> FloatParameter<'_>

Pan in y direction

source

pub fn color_x(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

Color of physical strip in x direction

source

pub fn color_y(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

Color of physical strip in y direction

source

pub fn fx_x(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

FX of physical strip in x direction

source

pub fn fx_y(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

FX of physical strip in y direction

source

pub fn audability(&self) -> FloatParameter<'_>

Audability

source

pub fn comp(&self) -> FloatParameter<'_>

Compression

See also Strip::comp_detailed for detailed compressor settings

source

pub fn comp_detailed(&self) -> Result<StripCompressor<'_>, ParameterError>

Compressor detailed parameters/settings

Only works on Voicemeeter Potato

source

pub fn gate(&self) -> FloatParameter<'_>

Gate

See also Strip::gate_detailed for detailed gate settings

source

pub fn gate_detailed(&self) -> Result<StripGate<'_>, ParameterError>

Gate detailed parameters/settings

Only works on Voicemeeter Potato

source

pub fn denoiser(&self) -> Result<FloatParameter<'_>, ParameterError>

Denoiser Knob

source

pub fn karaoke(&self) -> IntParameter<'_>

Karaoke

source

pub fn limit(&self) -> IntParameter<'_>

Limit

source

pub fn eq_gain1(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

EQGain1 of virtual strip

source

pub fn eq_gain2(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

EQGain2 of virtual strip

source

pub fn eq_gain3(&self) -> Result<FloatParameter<'_>, InvalidTypeError>

EQGain3 of virtual strip

source

pub fn label(&self) -> StringParameter<'_>

Label

source

pub fn a1(&self) -> BoolParameter<'_>

Out BUS Assignation for A1

source

pub fn a2(&self) -> BoolParameter<'_>

Out BUS Assignation for A2

source

pub fn a3(&self) -> BoolParameter<'_>

Out BUS Assignation for A3

source

pub fn a4(&self) -> BoolParameter<'_>

Out BUS Assignation for A4

source

pub fn a5(&self) -> BoolParameter<'_>

Out BUS Assignation for A5

source

pub fn b1(&self) -> BoolParameter<'_>

Out BUS Assignation for B1

source

pub fn b2(&self) -> BoolParameter<'_>

Out BUS Assignation for B2

source

pub fn b3(&self) -> BoolParameter<'_>

Out BUS Assignation for B3

source

pub fn eq_on(&self) -> BoolParameter<'_>

EQ Button

source

pub fn eq_ab(&self) -> BoolParameter<'_>

EQ Memory Slot

source

pub fn eq( &self, channel: usize ) -> Result<EqChannelParameter<'_>, ParameterError>

EQ on channel

source

pub fn fade_to(&self) -> TupleParameter<'_, i32, usize>

Fade to

source

pub fn fade_by(&self) -> TupleParameter<'_, i32, usize>

Fade by

source

pub fn reverb(&self) -> FloatParameter<'_>

Send Level To Reverb

source

pub fn delay(&self) -> FloatParameter<'_>

Send Level To Delay

source

pub fn fx1(&self) -> FloatParameter<'_>

Send Level To External Fx1

source

pub fn fx2(&self) -> FloatParameter<'_>

Send Level To External Fx2

source

pub fn post_reverb(&self) -> BoolParameter<'_>

Post Reverb button

source

pub fn post_delay(&self) -> BoolParameter<'_>

Post Delay button

source

pub fn post_fx1(&self) -> BoolParameter<'_>

Post Fx1 button

source

pub fn post_fx2(&self) -> BoolParameter<'_>

Post Fx2 button

source

pub fn app_gain_indexed( &self, application_index: ZIndex ) -> FloatParameter<'_, true, false>

Application gain

source

pub fn app_mute_indexed( &self, application_index: ZIndex ) -> BoolParameter<'_, true, false>

Application Mute

source

pub fn app_gain(&self) -> TupleParameter<'_, String, f32, true, false>

Application gain

source

pub fn app_mute(&self) -> TupleParameter<'_, String, bool, true, false>

Application Mute

source

pub fn device(&self) -> Result<StripDevice<'a>, InvalidTypeError>

Audio Device information

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Strip<'a>

§

impl<'a> Send for Strip<'a>

§

impl<'a> Sync for Strip<'a>

§

impl<'a> Unpin for Strip<'a>

§

impl<'a> UnwindSafe for Strip<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more