wigglePars | R Documentation |
Internal soundgen function
wigglePars(parList, parsToWiggle, probMutation, stepVariance)
parList |
full list of considered parameters |
parsToWiggle |
a list of the names of pars that might be mutated |
probMutation |
the probability of a parameter mutating per iteration |
stepVariance |
scale factor for calculating the size of mutations |
Helper function for matchPars
. Takes a list of control
parameters for soundgen
and introduces some random variation in
their values.
soundgen:::wigglePars(
parList = list(
sylLen = 250,
pitch = data.frame(time = c(0, 1), value = c(200, 300))
),
parsToWiggle = c('sylLen', 'pitch'),
probMutation = .75,
stepVariance = .5
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.