| sampleLength | R Documentation |
Gets the length (in samples = bytes) of an audio fragment stored as a
PTSample.
## S4 method for signature 'PTSample'
sampleLength(sample)
sample |
A |
PTSamples are 8 bit mono audio fragments. This method
returns the length of this fragment expressed as number of samples (which
also equals the number of bytes).
Returns a numeric value representing the number of samples
(bytes) the PTSample object sample is composed of.
Pepijn de Vries
Other sample.operations:
PTSample-class,
PTSample-method,
fineTune(),
loopLength(),
loopSample(),
loopStart(),
loopState(),
name,
playSample(),
read.sample(),
volume(),
waveform(),
write.sample()
data("mod.intro")
## Show the length of the second sample in mod.intro
sampleLength(PTSample(mod.intro, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.