Class GestureGranularTexture.Builder
java.lang.Object
net.paulhertz.pixelaudio.granular.GestureGranularTexture.Builder
- Enclosing class:
- GestureGranularTexture
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate ADSRParamsprivate floatprivate intprivate ddf.minim.analysis.WindowFunctionprivate intprivate GestureGranularTexture.HopModeprivate booleanprivate floatprivate floatprivate intprivate floatprivate floatprivate GestureGranularTexture.WarpShape -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()burstGrains(int v) env(ADSRParams v) gainLinear(float v) grainLengthSamples(int v) grainWindow(ddf.minim.analysis.WindowFunction wf) Assign a custom grain window function (grain-level envelope).hopLengthSamples(int v) looping(boolean v) pan(float v) pitchRatio(float v) Convenience helper to select a preset and set the corresponding WindowFunction.targetCount(int v) targetDurationMs(float v) warpExponent(float v)
-
Field Details
-
grainLengthSamples
private int grainLengthSamples -
hopLengthSamples
private int hopLengthSamples -
burstGrains
private int burstGrains -
gainLinear
private float gainLinear -
pan
private float pan -
pitchRatio
private float pitchRatio -
env
-
looping
private boolean looping -
hopMode
-
grainWindow
private ddf.minim.analysis.WindowFunction grainWindow -
timeTransform
-
targetCount
private int targetCount -
targetDurationMs
private float targetDurationMs -
warpShape
-
warpExponent
private float warpExponent
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
grainLengthSamples
-
hopLengthSamples
-
burstGrains
-
gainLinear
-
pan
-
pitchRatio
-
env
-
looping
-
hopMode
-
grainWindow
Assign a custom grain window function (grain-level envelope). -
selectWindowPreset
public GestureGranularTexture.Builder selectWindowPreset(GestureGranularTexture.WindowPreset preset) Convenience helper to select a preset and set the corresponding WindowFunction. If preset == CUSTOM, this method does nothing; assign grainWindow(...) manually. -
timeTransform
-
targetCount
-
targetDurationMs
-
warpShape
-
warpExponent
-
build
-