Arguments
- sample
A
PTSampleobject that needs to be looped.- times
A positive
integervalue indicating the number of times a sample loop should be repeated. This argument is ignored ifn_samplesis specified.- n_samples
A positive
integervalue indicating the desired length of the looped waveform in number of samples. This argument overrules thetimesargument.
Value
Returns a waveform represented by a numeric
vector of values ranging from 0 up to 255. Has a length of
n_samples when that argument is specified.
Details
For playing routines, it can be useful to generate repeats of a sample loop.
This method returns the waveform of a PTSample where the
loop is repeated times`' times or has a length of n_samples`'.
See also
Other loop.methods:
loopLength(),
loopStart(),
loopState()
Other sample.operations:
PTSample-class,
PTSample-method,
fineTune(),
loopLength(),
loopStart(),
loopState(),
name,
playSample(),
read.sample(),
sampleLength(),
volume(),
waveform(),
write.sample()

