Struct voicemeeter::interface::parameters::strip::Strip
source · pub struct Strip<'a> { /* private fields */ }
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>
impl<'a> Strip<'a>
sourcepub fn param(&self, dot: impl Display) -> Cow<'static, ParameterNameRef>
pub fn param(&self, dot: impl Display) -> Cow<'static, ParameterNameRef>
Get the identifier for a parameter on this strip: Strip[i].{dot}
sourcepub fn is_physical(&self) -> bool
pub fn is_physical(&self) -> bool
Strip is physical
sourcepub fn is_virtual(&self) -> bool
pub fn is_virtual(&self) -> bool
Strip is virtual
sourcepub fn mono(&self) -> BoolParameter<'_>
pub fn mono(&self) -> BoolParameter<'_>
Mono Button
sourcepub fn mute(&self) -> BoolParameter<'_>
pub fn mute(&self) -> BoolParameter<'_>
Mute Button
sourcepub fn solo(&self) -> BoolParameter<'_>
pub fn solo(&self) -> BoolParameter<'_>
Solo Button
sourcepub fn mute_center(&self) -> BoolParameter<'_>
pub fn mute_center(&self) -> BoolParameter<'_>
Mute Center Button
sourcepub fn gain(&self) -> FloatParameter<'_>
pub fn gain(&self) -> FloatParameter<'_>
Gain slider
sourcepub fn gain_layer(&self, layer: impl Into<ZIndex>) -> FloatParameter<'_>
pub fn gain_layer(&self, layer: impl Into<ZIndex>) -> FloatParameter<'_>
Gain slider for a bus
sourcepub fn pan_x(&self) -> FloatParameter<'_>
pub fn pan_x(&self) -> FloatParameter<'_>
Pan in x direction
sourcepub fn pan_y(&self) -> FloatParameter<'_>
pub fn pan_y(&self) -> FloatParameter<'_>
Pan in y direction
sourcepub fn color_x(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn color_x(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
Color of physical strip in x direction
sourcepub fn color_y(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn color_y(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
Color of physical strip in y direction
sourcepub fn fx_x(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn fx_x(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
FX of physical strip in x direction
sourcepub fn fx_y(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn fx_y(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
FX of physical strip in y direction
sourcepub fn audability(&self) -> FloatParameter<'_>
pub fn audability(&self) -> FloatParameter<'_>
Audability
sourcepub fn comp(&self) -> FloatParameter<'_>
pub fn comp(&self) -> FloatParameter<'_>
Compression
See also Strip::comp_detailed for detailed compressor settings
sourcepub fn comp_detailed(&self) -> Result<StripCompressor<'_>, ParameterError>
pub fn comp_detailed(&self) -> Result<StripCompressor<'_>, ParameterError>
Compressor detailed parameters/settings
Only works on Voicemeeter Potato
sourcepub fn gate(&self) -> FloatParameter<'_>
pub fn gate(&self) -> FloatParameter<'_>
Gate
See also Strip::gate_detailed for detailed gate settings
sourcepub fn gate_detailed(&self) -> Result<StripGate<'_>, ParameterError>
pub fn gate_detailed(&self) -> Result<StripGate<'_>, ParameterError>
Gate detailed parameters/settings
Only works on Voicemeeter Potato
sourcepub fn denoiser(&self) -> Result<FloatParameter<'_>, ParameterError>
pub fn denoiser(&self) -> Result<FloatParameter<'_>, ParameterError>
Denoiser Knob
sourcepub fn karaoke(&self) -> IntParameter<'_>
pub fn karaoke(&self) -> IntParameter<'_>
Karaoke
sourcepub fn limit(&self) -> IntParameter<'_>
pub fn limit(&self) -> IntParameter<'_>
Limit
sourcepub fn eq_gain1(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn eq_gain1(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
EQGain1 of virtual strip
sourcepub fn eq_gain2(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn eq_gain2(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
EQGain2 of virtual strip
sourcepub fn eq_gain3(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
pub fn eq_gain3(&self) -> Result<FloatParameter<'_>, InvalidTypeError>
EQGain3 of virtual strip
sourcepub fn label(&self) -> StringParameter<'_>
pub fn label(&self) -> StringParameter<'_>
Label
sourcepub fn a1(&self) -> BoolParameter<'_>
pub fn a1(&self) -> BoolParameter<'_>
Out BUS Assignation for A1
sourcepub fn a2(&self) -> BoolParameter<'_>
pub fn a2(&self) -> BoolParameter<'_>
Out BUS Assignation for A2
sourcepub fn a3(&self) -> BoolParameter<'_>
pub fn a3(&self) -> BoolParameter<'_>
Out BUS Assignation for A3
sourcepub fn a4(&self) -> BoolParameter<'_>
pub fn a4(&self) -> BoolParameter<'_>
Out BUS Assignation for A4
sourcepub fn a5(&self) -> BoolParameter<'_>
pub fn a5(&self) -> BoolParameter<'_>
Out BUS Assignation for A5
sourcepub fn b1(&self) -> BoolParameter<'_>
pub fn b1(&self) -> BoolParameter<'_>
Out BUS Assignation for B1
sourcepub fn b2(&self) -> BoolParameter<'_>
pub fn b2(&self) -> BoolParameter<'_>
Out BUS Assignation for B2
sourcepub fn b3(&self) -> BoolParameter<'_>
pub fn b3(&self) -> BoolParameter<'_>
Out BUS Assignation for B3
sourcepub fn eq_on(&self) -> BoolParameter<'_>
pub fn eq_on(&self) -> BoolParameter<'_>
EQ Button
sourcepub fn eq_ab(&self) -> BoolParameter<'_>
pub fn eq_ab(&self) -> BoolParameter<'_>
EQ Memory Slot
sourcepub fn eq(
&self,
channel: usize
) -> Result<EqChannelParameter<'_>, ParameterError>
pub fn eq( &self, channel: usize ) -> Result<EqChannelParameter<'_>, ParameterError>
EQ on channel
sourcepub fn fade_to(&self) -> TupleParameter<'_, i32, usize>
pub fn fade_to(&self) -> TupleParameter<'_, i32, usize>
Fade to
sourcepub fn fade_by(&self) -> TupleParameter<'_, i32, usize>
pub fn fade_by(&self) -> TupleParameter<'_, i32, usize>
Fade by
sourcepub fn reverb(&self) -> FloatParameter<'_>
pub fn reverb(&self) -> FloatParameter<'_>
Send Level To Reverb
sourcepub fn delay(&self) -> FloatParameter<'_>
pub fn delay(&self) -> FloatParameter<'_>
Send Level To Delay
sourcepub fn fx1(&self) -> FloatParameter<'_>
pub fn fx1(&self) -> FloatParameter<'_>
Send Level To External Fx1
sourcepub fn fx2(&self) -> FloatParameter<'_>
pub fn fx2(&self) -> FloatParameter<'_>
Send Level To External Fx2
sourcepub fn post_reverb(&self) -> BoolParameter<'_>
pub fn post_reverb(&self) -> BoolParameter<'_>
Post Reverb button
sourcepub fn post_delay(&self) -> BoolParameter<'_>
pub fn post_delay(&self) -> BoolParameter<'_>
Post Delay button
sourcepub fn post_fx1(&self) -> BoolParameter<'_>
pub fn post_fx1(&self) -> BoolParameter<'_>
Post Fx1 button
sourcepub fn post_fx2(&self) -> BoolParameter<'_>
pub fn post_fx2(&self) -> BoolParameter<'_>
Post Fx2 button
sourcepub fn app_gain_indexed(
&self,
application_index: ZIndex
) -> FloatParameter<'_, true, false>
pub fn app_gain_indexed( &self, application_index: ZIndex ) -> FloatParameter<'_, true, false>
Application gain
sourcepub fn app_mute_indexed(
&self,
application_index: ZIndex
) -> BoolParameter<'_, true, false>
pub fn app_mute_indexed( &self, application_index: ZIndex ) -> BoolParameter<'_, true, false>
Application Mute
sourcepub fn app_gain(&self) -> TupleParameter<'_, String, f32, true, false>
pub fn app_gain(&self) -> TupleParameter<'_, String, f32, true, false>
Application gain
sourcepub fn app_mute(&self) -> TupleParameter<'_, String, bool, true, false>
pub fn app_mute(&self) -> TupleParameter<'_, String, bool, true, false>
Application Mute
sourcepub fn device(&self) -> Result<StripDevice<'a>, InvalidTypeError>
pub fn device(&self) -> Result<StripDevice<'a>, InvalidTypeError>
Audio Device information