divideIntoSyllables | R Documentation |
Internal soundgen function.
divideIntoSyllables(
nSyl,
sylLen,
pauseLen,
sylDur_min = 20,
sylDur_max = 10000,
pauseDur_min = 20,
pauseDur_max = 1000,
temperature = 0.025,
invalidArgAction = c("adjust", "abort", "ignore")[1],
plot = FALSE
)
nSyl |
the desired number of syllables |
sylLen |
the desired mean syllable duration, in ms (vectorized) |
pauseLen |
the desired mean pause between syllables, in ms (vectorized) |
sylDur_min , sylDur_max |
the lower and upper bounds on possible syllable duration, in ms |
pauseDur_min , pauseDur_max |
the lower and upper bounds on possible pause duration, in ms |
temperature |
a non-negative float regulating the stochasticity of syllable segmentation; 0 = no stochasticity; 1 = sd of proposals is equal to sylLen (very strong stochasticity) |
invalidArgAction |
what to do if an argument is invalid or outside the
range in |
plot |
produce a plot of syllable structure? |
Stochastic generation of syllable structure of a bout. Calls
rnorm_truncated
to vary the duration of each new syllable and of
pauses between syllables. Total bout duration will also vary, unless
temperature is zero. However, the output will always contain exactly
nSyl
syllables.
Returns a matrix with a list of start-end points for syllables
soundgen:::divideIntoSyllables (nSyl = 1, sylLen = 180)
soundgen:::divideIntoSyllables (nSyl = 5, sylLen = 180,
pauseLen = 55, temperature = 0.2, plot = TRUE)
soundgen:::divideIntoSyllables (nSyl = 5, sylLen = 180,
pauseLen = 55, temperature = 0)
soundgen:::divideIntoSyllables (nSyl = 3, sylLen = 100,
pauseLen = 25, temperature = 0.5)
# sylLen and pauseLen are vectorized:
soundgen:::divideIntoSyllables (nSyl = 15, sylLen = 100:200,
pauseLen = c(80, 25, 80), temperature = 0.05, plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.