| loopState | R Documentation |
Determines whether a loop is specified for a PTSample object.
## S4 method for signature 'PTSample'
loopState(sample)
sample |
A |
The loop state is not explicitly stored in a PTSample object.
It can be derived from the loopStart position and
loopLength. This method is provided as a convenient method
to get the state. Use either loopStart or loopLength
to change the state.
Returns a logical value indicating whether a loop is (TRUE)
or isn't (FALSE) specified for the sample.
Pepijn de Vries
Other loop.methods:
loopLength(),
loopSample(),
loopStart()
Other sample.operations:
PTSample-class,
PTSample-method,
fineTune(),
loopLength(),
loopSample(),
loopStart(),
name,
playSample(),
read.sample(),
sampleLength(),
volume(),
waveform(),
write.sample()
data("mod.intro")
## Get the loop status of sample number 1
## (it has a loop):
loopState(PTSample(mod.intro, 1))
## Get the loop status of sample number 2
## (it has no loop):
loopState(PTSample(mod.intro, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.