var general = require('jgauss').general module.exports = overtone function overtone(t, f, u, s, m, i, sine, phase){ var x = 1; var y = 0; for(var ii = 0; ii <= i; ii++){ var g = general(x, u, s); y += sine(t, x * f, phase) * g; x *= m } return y; }