AM2

More amplitude modulation

// initialise audio
maximJs.maxiAudio.init();

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

maximJs.maxiAudio.play = function(){
 	// these two sines will beat together. They're now a bit too loud though..
 	this.output = mySine.sinewave(440)*myOtherSine.sinewave(myPhasor.phasor(0.1,0,440));
 }