Files: 0644bfade7bc961ab6db3a76a64a4babf57e7666 / index.js
292 bytesRaw
1 | var general = require('jgauss').general |
2 | |
3 | module.exports = overtone |
4 | |
5 | function overtone(t, f, u, s, m, i, sine, phase){ |
6 | var x = 1; |
7 | var y = 0; |
8 | for(var ii = 0; ii <= i; ii++){ |
9 | var g = general(x, u, s); |
10 | y += sine(t, x * f, phase) * g; |
11 | x *= m |
12 | } |
13 | return y; |
14 | } |
15 |
Built with git-ssb-web