FloatControlWrapper

abstract class FloatControlWrapper(clip: Clip, controlType: FloatControl.Type)

A wrapper class for managing FloatControl types in audio Clips.

Parameters

clip

The Clip containing the control.

controlType

The type of FloatControl to wrap.

Throws

if the specified control type is not supported by the Clip.

if the control retrieved is not a FloatControl.

Inheritors

Constructors

Link copied to clipboard
constructor(clip: Clip, controlType: FloatControl.Type)

Creates a FloatControlWrapper for the specified control type.

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
protected val control: FloatControl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addValue(delta: Float)

Adds a delta to the current value of the control.

Link copied to clipboard

Retrieves the current value of the control.

Link copied to clipboard

Resets the control to its default value.

Link copied to clipboard
fun updateValue(value: Float)

Updates the value of the control.