◀︎ ▲︎ ▶︎︎

Simple Sequencer App
Synth + delay + detune

	Synth.prototype.play = function(n, tim) {
	for (i = 0; i < 3; i++) {	// 3 Oscillators
		var osc = ctx.createOscillator();
		osc.type = "sawtooth";
		var detune = 3 * i;		// detune 3Hz each oscillators
		osc.frequency.value
			= 440.0 * Math.pow(2.0, (this.seq[n % 8] - 69.0) / 12.0)
			+ detune;
		osc.connect(this.vol);
		osc.start(tim);
		osc.stop(tim + 0.10);
	}
}