Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class AudioParamDescriptor

  1. Object
  2. AudioParamDescriptor
Declares one AudioParam of an AudioProcessorNode, the Web Audio AudioParamDescriptor.

Constructors

public AudioParamDescriptor(String name, float defaultValue)An audio rate parameter with no range.
public AudioParamDescriptor(String name, float defaultValue, float minValue, float maxValue, AutomationRate rate)A parameter with a range and a rate.

Methods

public String getName()
public float getDefaultValue()
public float getMinValue()
public float getMaxValue()
public AutomationRate getAutomationRate()

Inherited methods

Constructor details

AudioParamDescriptor

public AudioParamDescriptor(String name, float defaultValue)
An audio rate parameter with no range.

Parameters

name String
the parameter’s name
defaultValue float
its initial value

AudioParamDescriptor

public AudioParamDescriptor(String name, float defaultValue, float minValue, float maxValue, AutomationRate rate)
A parameter with a range and a rate.

Parameters

name String
the parameter’s name
defaultValue float
its initial value
minValue float
the lowest value it takes
maxValue float
the highest value it takes
rate AutomationRate
audio or control rate

Method details

getName

public String getName()

Returns

the name

getDefaultValue

public float getDefaultValue()

Returns

the initial value

getMinValue

public float getMinValue()

Returns

the lowest value

getMaxValue

public float getMaxValue()

Returns

the highest value

getAutomationRate

public AutomationRate getAutomationRate()

Returns

the automation rate