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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.