Class GestureScheduleBuilder
java.lang.Object
net.paulhertz.pixelaudio.schedule.GestureScheduleBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(PACurveMaker brush, GestureGranularConfig cfg, float sampleRate) (package private) static floatconstrain01(float u) (package private) static floateaseInOutPow(float u, float exp) private static intfindSegment(float[] u, float uk) private GestureSchedulegetBaseSchedule(PACurveMaker brush, GestureGranularConfig cfg) private static floatlerpFloatByU(float[] a, float[] u, float uk) private static processing.core.PVectorlerpPointByU(List<processing.core.PVector> pts, float[] u, float uk) private static GestureScheduleresampleToCount(GestureSchedule in, int count) private static GestureSchedulescaleToDurationMs(GestureSchedule in, int targetDurationMs) private static GestureScheduletoFixedHopScheduleMs(GestureSchedule in, int hopSamples, float sampleRate) private static GestureSchedulewarpScheduleTimesMs(GestureSchedule in, GestureGranularConfig.WarpShape shape, float exponent) private static floatwarpU(float u, GestureGranularConfig.WarpShape shape, float exponent)
-
Constructor Details
-
GestureScheduleBuilder
public GestureScheduleBuilder()
-
-
Method Details
-
build
-
getBaseSchedule
-
toFixedHopScheduleMs
private static GestureSchedule toFixedHopScheduleMs(GestureSchedule in, int hopSamples, float sampleRate) -
resampleToCount
-
lerpPointByU
private static processing.core.PVector lerpPointByU(List<processing.core.PVector> pts, float[] u, float uk) -
lerpFloatByU
private static float lerpFloatByU(float[] a, float[] u, float uk) -
findSegment
private static int findSegment(float[] u, float uk) -
scaleToDurationMs
-
warpScheduleTimesMs
private static GestureSchedule warpScheduleTimesMs(GestureSchedule in, GestureGranularConfig.WarpShape shape, float exponent) -
warpU
-
easeInOutPow
static float easeInOutPow(float u, float exp) -
constrain01
static float constrain01(float u)
-