Class GestureEventParams.Builder
java.lang.Object
net.paulhertz.pixelaudio.granular.GestureEventParams.Builder
- Enclosing class:
- GestureEventParams
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate float[]private final intprivate float[]private float[]private intprivate int[]private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()gain(float[] v) Optional.noCopy()By default, build() defensively copies arrays.pan(float[] v) Optional.pitchRatio(float[] v) Optional.private static voidrequireLen(String name, int got, int expect) scheduleId(int v) Optional caller-defined id for associated schedule.startIndices(int[] v) Required.version(int v) Optional caller-defined tag/version.
-
Field Details
-
n
private final int n -
startIndices
private int[] startIndices -
pan
private float[] pan -
gain
private float[] gain -
pitchRatio
private float[] pitchRatio -
version
private int version -
scheduleId
private int scheduleId -
copyArrays
private boolean copyArrays
-
-
Constructor Details
-
Builder
private Builder(int n)
-
-
Method Details
-
noCopy
By default, build() defensively copies arrays. Call this to keep references as-is. Only do this if you treat the arrays as immutable after building. -
startIndices
Required. Length must equal n. -
pan
Optional. If non-null, length must equal n. -
gain
Optional. If non-null, length must equal n. -
pitchRatio
Optional. If non-null, length must equal n. -
version
Optional caller-defined tag/version. -
scheduleId
Optional caller-defined id for associated schedule. -
build
-
requireLen
-