MonoSample
, MonoSampleBuilder
, SampleBuilder<MonoSample,MonoSampleBuilder>
, SamplingRateAccessor
, SamplingRateAccessor.SamplingRateBuilder<MonoSample>
, SamplingRateAccessor.SamplingRateMutator
, SamplingRateAccessor.SamplingRateProperty
, SoundSample
, org.refcodes.mixin.IndexAccessor
, org.refcodes.mixin.IndexAccessor.IndexBuilder<MonoSample>
, org.refcodes.mixin.IndexAccessor.IndexMutator
, org.refcodes.mixin.IndexAccessor.IndexProperty
, org.refcodes.mixin.TimeStampAccessor
, org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<MonoSample>
, org.refcodes.mixin.TimeStampAccessor.TimeStampMutator
, org.refcodes.mixin.TimeStampAccessor.TimeStampProperty
public class MonoSampleBuilderImpl extends Object implements MonoSampleBuilder
MonoSampleBuilderImpl
represents a single amplitude (one for the
mono channel) assigned to an according time positioning.org.refcodes.mixin.IndexAccessor.IndexBuilder<B extends org.refcodes.mixin.IndexAccessor.IndexBuilder<B>>, org.refcodes.mixin.IndexAccessor.IndexMutator, org.refcodes.mixin.IndexAccessor.IndexProperty
SamplingRateAccessor.SamplingRateBuilder<B extends SamplingRateAccessor.SamplingRateBuilder<B>>, SamplingRateAccessor.SamplingRateMutator, SamplingRateAccessor.SamplingRateProperty
org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<B extends org.refcodes.mixin.TimeStampAccessor.TimeStampBuilder<B>>, org.refcodes.mixin.TimeStampAccessor.TimeStampMutator, org.refcodes.mixin.TimeStampAccessor.TimeStampProperty
Constructor | Description |
---|---|
MonoSampleBuilderImpl(double aSample) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(double aTimeMillis,
double aSample) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(double aTimeMillis,
double aSample,
int aSamplingRate) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(double aSample,
int aSamplingRate) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(long aIndex,
double aSample) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(long aIndex,
double aTimeMillis,
double aSample) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(long aIndex,
double aTimeMillis,
double aSample,
int aSamplingRate) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(long aIndex,
double aSample,
int aSamplingRate) |
Constructs a
MonoSample instance with the according time and
sample settings. |
MonoSampleBuilderImpl(long aIndex,
int aSamplingRate) |
Constructs a
SoundSampleBuilder instance with the according time
and sample settings. |
MonoSampleBuilderImpl(MonoSample aSample) |
Constructs a
MonoSample instance with the according sound
sample's settings |
Modifier and Type | Method | Description |
---|---|---|
void |
decreaseIndex() |
|
long |
getIndex() |
|
double[] |
getSampleData() |
Returns the sample's data for the according time positioning.
|
int |
getSamplingRate() |
Retrieves the sampling rate from the sampling rate property.
|
double |
getTimeStamp() |
Returns the position in time of this sound sample in ms.
|
void |
increaseIndex() |
|
void |
setIndex(long aIndex) |
|
void |
setMonoData(double aSampleData) |
Sets the sample's data for the according time positioning.
|
void |
setSamplingRate(int aSamplingRate) |
Sets the sampling rate for the sampling rate property.
|
void |
setTimeStamp(double aTimeInMillis) |
Sets the position in time of this sound sample in ms.
|
String |
toString() |
getMonoData
build, withDecreaseIndex, withIncreaseIndex, withIndex, withMonoData, withSamplingRate, withTimeStamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
updateTimeStamp
letSamplingRate
getChannelCount
public MonoSampleBuilderImpl(MonoSample aSample)
MonoSample
instance with the according sound
sample's settingsaSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.public MonoSampleBuilderImpl(double aSample)
MonoSample
instance with the according time and
sample settings.aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.public MonoSampleBuilderImpl(double aTimeMillis, double aSample)
MonoSample
instance with the according time and
sample settings.aTimeMillis
- The time positioning of this sound sample.aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.public MonoSampleBuilderImpl(double aTimeMillis, double aSample, int aSamplingRate)
MonoSample
instance with the according time and
sample settings.aTimeMillis
- The time positioning of this sound sample.aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.aSamplingRate
- The sampling rate for the given sample.public MonoSampleBuilderImpl(double aSample, int aSamplingRate)
MonoSample
instance with the according time and
sample settings.aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.aSamplingRate
- The sampling rate for the given sample.public MonoSampleBuilderImpl(long aIndex, double aSample)
MonoSample
instance with the according time and
sample settings.aIndex
- The index of the sample according to its position in the
sample sequence (e.g. sound file).aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.public MonoSampleBuilderImpl(long aIndex, double aSample, int aSamplingRate)
MonoSample
instance with the according time and
sample settings.aIndex
- The index of the sample according to its position in the
sample sequence (e.g. sound file).aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.aSamplingRate
- The sampling rate for the given sample.public MonoSampleBuilderImpl(long aIndex, double aTimeMillis, double aSample)
MonoSample
instance with the according time and
sample settings.aIndex
- The index of the sample according to its position in the
sample sequence (e.g. sound file).aTimeMillis
- The time positioning of this sound sample.aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.public MonoSampleBuilderImpl(long aIndex, double aTimeMillis, double aSample, int aSamplingRate)
MonoSample
instance with the according time and
sample settings.aIndex
- The index of the sample according to its position in the
sample sequence (e.g. sound file).aTimeMillis
- The time positioning of this sound sample.aSample
- The sample (set of values representing the channels, one
channel per value) for the related time positioning.aSamplingRate
- The sampling rate for the given sample.public MonoSampleBuilderImpl(long aIndex, int aSamplingRate)
SoundSampleBuilder
instance with the according time
and sample settings.aIndex
- The index of the sample according to its position in the
sample sequence (e.g. sound file).aSamplingRate
- The sampling rate for the given sample.public void setMonoData(double aSampleData)
setMonoData
in interface MonoSampleBuilder
aSampleData
- The sample's data for the according time positioning.public double[] getSampleData()
getSampleData
in interface SoundSample
public double getTimeStamp()
getTimeStamp
in interface SoundSample
getTimeStamp
in interface org.refcodes.mixin.TimeStampAccessor
public int getSamplingRate()
getSamplingRate
in interface SamplingRateAccessor
public long getIndex()
getIndex
in interface org.refcodes.mixin.IndexAccessor
public void setIndex(long aIndex)
setIndex
in interface org.refcodes.mixin.IndexAccessor.IndexMutator
public void increaseIndex()
increaseIndex
in interface org.refcodes.mixin.IndexAccessor.IndexMutator
public void decreaseIndex()
decreaseIndex
in interface org.refcodes.mixin.IndexAccessor.IndexMutator
public void setTimeStamp(double aTimeInMillis)
setTimeStamp
in interface MonoSampleBuilder
setTimeStamp
in interface org.refcodes.mixin.TimeStampAccessor.TimeStampMutator
aTimeInMillis
- The sound sample's time positioning in ms.public void setSamplingRate(int aSamplingRate)
setSamplingRate
in interface SamplingRateAccessor.SamplingRateMutator
aSamplingRate
- The sampling rate to be stored by the sampling
rate property.Copyright © 2021. All rights reserved.