Description Usage Arguments Value Examples
Takes two formulas for synthesizing two target sounds with
soundgen
and produces a number of intermediate forms (morphs),
attempting to go from one target sound to the other in a specified number of
equal steps.
1 2 |
formula1, formula2 |
lists of parameters for calling
|
nMorphs |
the length of morphing sequence, including target sounds |
playMorphs |
if TRUE, the morphing sequence will be played |
savePath |
if it is the path to an existing directory, morphs will be saved there as individual .wav files (defaults to NA) |
samplingRate |
sampling rate of output, Hz. NB: must be the same as in
|
A list of two sublists ($formulas
and $sounds
), each
sublist of length nMorphs. For ex., the formula for the second hybrid is
m$formulas[[2]]
, and the waveform is m$sounds[[2]]
1 2 3 4 5 6 7 8 | # write two formulas or copy-paste them from soundgen_app() or presets, for example:
m = morph(formula1 = list(repeatBout = 2),
# equivalently: formula1 = 'soundgen(repeatBout = 2)',
formula2 = presets$Misc$Dog_bark,
nMorphs = 5, playMorphs = FALSE)
# use $formulas to access formulas for each morph, $sounds for waveforms
# m$formulas[[4]]
# playme(m$sounds[[3]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.