public class LFOControlSource extends ControlSource
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer-libs/html/GstLFOControlSource.html
LFOControlSource is a ControlSource, that provides several periodic
waveforms as control values.
To use InterpolationControlSource create a new instance, bind it to a GParamSpec and set the relevant properties.
All functions are MT-safe.
ControlSource.TimedValueGObject.GCallback, GObject.GInterfaceNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
GTYPE_NAME |
| Constructor and Description |
|---|
LFOControlSource()
Create a new, unbound LFOControlSource.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAmplitude()
Get the amplitude of the waveform.
|
double |
getFrequency()
Get the frequency of the waveform.
|
double |
getOffset()
Get the value offset of the waveform.
|
long |
getTimeshift()
Get the timeshift of the waveform.
|
LFOWaveform |
getWaveform()
Get the waveform.
|
LFOControlSource |
setAmplitude(double value)
Specifies the amplitude for the waveform of this LFOControlSource.
|
LFOControlSource |
setFrequency(double value)
Specifies the frequency that should be used for the waveform of this
LFOControlSource.
|
LFOControlSource |
setOffset(double value)
Specifies the value offset for the waveform of this LFOControlSource.
|
LFOControlSource |
setTimeshift(long value)
Specifies the timeshift to the right that should be used for the waveform
of this LFOControlSource in nanoseconds.
|
LFOControlSource |
setWaveform(LFOWaveform value)
Specifies the waveform that should be used for this LFOControlSource.
|
getValue, getValueArrayaddControlBinding, getAsString, getControlBinding, getName, getParent, hasActiveControlBindings, removeControlBinding, setAsString, setControlBindingDisabled, setControlBindingsDisabled, setName, suggestNextSync, syncValues, toStringaddCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, setclose, disown, equals, getPointer, getRawPointer, hashCodepublic static final String GTYPE_NAME
public LFOControlSource()
public LFOControlSource setAmplitude(double value)
Allowed values: [0,1]
Default value: 1
value - amplitude between 0 and 1public double getAmplitude()
public LFOControlSource setFrequency(double value)
Allowed values: >= Double.MIN_VALUE
Default value: 1
value - frequency >= Double.MIN_VALUEpublic double getFrequency()
public LFOControlSource setOffset(double value)
Allowed values: [0,1]
Default value: 1
value - offset between 0 and 1public double getOffset()
public LFOControlSource setTimeshift(long value)
Default value: 0
value - timeshift in nanosecondspublic long getTimeshift()
public LFOControlSource setWaveform(LFOWaveform value)
Default value: LFOWaveform.SINE
value - waveformpublic LFOWaveform getWaveform()
Copyright © 2021 gstreamer-java. All rights reserved.