begin = function() {
		
	rsize();
	m.begin();
	// Set up an event listener for new touches.
	canvasElement.addEventListener('touchstart', function(e) {
		e.preventDefault();
		touchStarted(event);
	});
	// Set up an event listener for when a touch ends.
	canvasElement.addEventListener('touchend', function(e) {
		e.preventDefault();
		touchEnded(e);
	});
	// Set up an event listener for when a touch leaves the canvas.
	canvasElement.addEventListener('touchleave', function(e) {
		e.preventDefault();
		touchEnded(e);
	});
	// Set up an event listener for when the touch instrument is moved.
	canvasElement.addEventListener('touchmove', function(e) {
		e.preventDefault();
		touchMoved(e);
	});
	// Set up an event listener to catch cancelled touches.
	canvasElement.addEventListener('touchcancel', function(e) {
		e.preventDefault();		
		touchCancelled(e);
	});
	// Mouse events
	canvasElement.addEventListener('mousedown', function(e) {
		e.preventDefault();		
		mouseDown(e);
	});
	// Mouse events
	canvasElement.addEventListener('mousemove', function(e) {
		e.preventDefault();		
		mouseMove(e);
	});
	// Mouse events
	canvasElement.addEventListener('mouseup', function(e) {
		e.preventDefault();		
		mouseUp(e);
	});

	// start the drawing loop.			
	requestAnimFrame(render);  
}
------------------------------------------------	
Begin dots' warmup before the song begins.
------------------------------------------------