Sample Example

var samplePlayer = new maximJs.maxiSample();
var mySine = new maximJs.maxiOsc();

function setup(){
loadSample("./beat2.wav", samplePlayer);
}

maximJs.maxiAudio.play = function(){
	// this is necessary as file loading may not complete in setup
	if(samplePlayer.isReady()){ 
	this.output = samplePlayer.play();//just play the file. Looping is default for all play functions.
		// this.output=samplePlayer.play(0.69) ;//play the file with a speed setting. 1. is normal speed.
		 // this.output=samplePlayer.play(0.5,0,44100);//linear interpolationplay with a frequency input, start point and end point. Useful for syncing.
		// this.output=samplePlayer.play4(0.5,0,44100);//cubic interpolation play with a frequency input, start point and end point. Useful for syncing.
}
}