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
Sourcepub fn vaio(&self) -> BoolParameter<'_>
pub fn vaio(&self) -> BoolParameter<'_>
VAIO input enable/disable.