The loop start position of a PTSample
Extract or replace the loop start position of a PTSample
.
## S4 method for signature 'PTSample' loopStart(sample) ## S4 replacement method for signature 'PTSample' loopStart(sample) <- value
sample |
A |
value |
An even Use a |
PTSample
s can have loops, marked by a starting position
and length of the loop (in samples), for more details see the
PTSample-class
. This method can be used to extract
the loop starting position or safely replace its value.
For loopStart
the loop start position (in samples), represented by
an even integer
value ranging from 0 up to 131070, is returned.
For loopStart<-
A PTSample
sample
, updated
with the loop start position 'value
', is returned.
Pepijn de Vries
Other sample.operations:
PTSample-class
,
PTSample-method
,
fineTune()
,
loopLength()
,
loopSample()
,
loopState()
,
name
,
playSample()
,
read.sample()
,
sampleLength()
,
volume()
,
waveform()
,
write.sample()
Other loop.methods:
loopLength()
,
loopSample()
,
loopState()
data("mod.intro") ## get the loop start position of the ## first sample of mod.intro: loopStart(PTSample(mod.intro, 1)) ## Let's change the starting position of ## the loop to 500 loopStart(PTSample(mod.intro, 1)) <- 500 ## Let's turn off the loop all together: loopStart(PTSample(mod.intro, 1)) <- FALSE
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.