Two Tones

Basic amplitude modulation

var audio = new maximJs.maxiAudio();
audio.init();

//This shows how to use maximilian to do basic amplitude modulation
var mySine = new maximJs.maxiOsc();
var myOtherSine = new maximJs.maxiOsc();

audio.play = function(){
 	// these two sines will beat together. They're now a bit too loud though.
 	this.output = mySine.sinewave(440+(myOtherSine.sinewave(1)*100));
 	
 }