morphList: Morph lists

Description Usage Arguments Value Examples

View source: R/utilities_morph.R

Description

Internal soundgen function.

Usage

1
morphList(l1, l2, nMorphs = 5)

Arguments

l1, l2

lists of formants (various lengths are ok)

nMorphs

length of morphing sequence

Value

A list of length nMorphs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
l1 = list(f1 = data.frame(time = c(0, .5, 1),
                          freq = c(700, 900, 1200),
                          amp = c(30), width = c(80)),
          f2 = data.frame(time = c(0),
                          freq = c(900),
                          amp = c(30),
                          width = c(120)),
          f3 = data.frame(time = c(0),
                          freq = c(1500),
                          amp = c(20),
                          width = c(150)))
l2 = list(f1 = data.frame(time = c(0),
                          freq = c(400),
                          amp = c(40),
                          width = c(120)),
          f2 = data.frame(time = c(0, 1),
                          freq = c(1500, 2000),
                          amp = c(30),
                          width = c(150)))
ml = soundgen:::morphList(l1, l2, 4)

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.