Delay
ClassCreates a buffer for the audio data.
- Available on all platforms
Index
Properties
Methods
Example
// @input int sampleRate
// @input float delayInSeconds
var delayBuilder = MachineLearning.createDelayBuilder();
var delay = delayBuilder.setNumFeatures(1)
.setDelay(script.sampleRate * script.delayInSeconds).build();
Extends
Properties
maxTensorSize
readonlymaxTensorSize:number
Maximum amount of features (channels).
Since
Lens Scripting Version 145
Methods
getTypeName()
staticgetTypeName():TypeName<Delay>
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Returns
TypeName<Delay>
Overrides
getTypeName()
getTypeName():
string
Returns the name of this object's type.
Returns
string
Inherited from
isOfType()
isOfType(
type):boolean
Returns true if the object matches or derives from the passed in type.
Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
boolean
Inherited from
isSame()
isSame(
other):boolean
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Parameters
| Parameter | Type |
|---|---|
other | ScriptObject |
Returns
boolean
Inherited from
process()
process(
inTensor,inShape,outTensor):vec3
Process current frame data passed in inTensor of shape inShape, writes the result (delayed frame) to the outTensor and returns the shape of outTensor.
Parameters
| Parameter | Type |
|---|---|
inTensor | Float32Array |
inShape | vec3 |
outTensor | Float32Array |
Returns
Since
Lens Scripting Version 145