◀︎ ▲︎ ▶︎︎

Simple Sequencer App
Simple Synth

		this.seq = [69, 72, 76, 74, 71, 69, 72, 76];
}

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