We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const { sin, PI, pow } = Math; const osc = (name, f) => sin(this[name] += 1/44100 * 2 * PI * f); const freq = noteNumber => Math.pow(2, (noteNumber - 69) / 12) * 440; return keys.map(key => osc('osc_' + key, freq(key))).reduce((acc, next) => acc + next, 0);