Uses of Interface
org.refcodes.audio.MonoSampleBuilder
-
Uses of MonoSampleBuilder in org.refcodes.audio
Modifier and TypeClassDescriptionclass
AMonoSampleBuilderImpl
represents a single amplitude (one for the mono channel) assigned to an according time positioning.Modifier and TypeMethodDescriptionstatic MonoSampleBuilder
CurveFunctionSoundSampleBuilder.asMonoSample
(double aIndex, Function<Double, Double> aFunction, double aFrequencyHz, double aAmplitude, int aXOffset, double aYOffset, int aSamplingRate) Creates aMonoSample
for the given arguments and the given function.static MonoSampleBuilder
MonoSampleBuilder.build
(double aSample) This is a convenience method for easily instantiating the according builder.default MonoSampleBuilder
MonoSampleBuilder.withDecreaseIndex()
default MonoSampleBuilder
MonoSampleBuilder.withIncreaseIndex()
default MonoSampleBuilder
MonoSampleBuilder.withIndex
(long aIndex) default MonoSampleBuilder
MonoSampleBuilder.withMonoData
(double aSampleData) Sets the sample's data for the sample property.default MonoSampleBuilder
MonoSampleBuilder.withSamplingRate
(int aSamplingRate) Sets the sampling rate for the sampling rate property.default MonoSampleBuilder
MonoSampleBuilder.withTimeStamp
(double aTimeMillis) Sets the position in time of this sound sample in ms.