example/samples.r

A4.fun <- function(seconds) sin(440 * seconds * 4 * pi)
A4.flat <- sin(440 * (1:12000) * 2 * pi / 8000)
normal.volume <- dnorm(3 * 2 * ((1:12000) - (12000/2))/12000)
A4 <- A4.flat * normal.volume / max(normal.volume)
tlevine/rrawaudio documentation built on May 31, 2019, 3:52 p.m.