Description Usage Arguments Details Value Examples
View source: R/utilities_math.R
Internal soundgen function.
1 2 | getSigmoid(len, samplingRate = 16000, freq = 5, shape = 0,
spikiness = 1)
|
len |
the length of output vector |
samplingRate |
the sampling rate of the output vector, Hz |
freq |
the frequency of amplitude modulation, Hz |
shape |
0 = ~sine, -1 = clicks, +1 = notches (NB: vice versa in soundgen!) |
spikiness |
the larger, the more quickly the shape of filter leaves sine-like approximation as shape deviates from 0 |
Produces a filter for amplitude modulation ranging from clicks to approximately a sine wave to reversed clicks (small episodes of silence). The filter is made from concatenated sigmoids and their mirror reflections.
Returns a vector of length len
and range from 0 to 1
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.