text: window.MIDIBlock = function()
  {
      var geometry	= new THREE.BoxGeometry(1,1,1);
      var material	= new THREE.MeshLambertMaterial({map : Textures.midi}); 
      var mesh	    = new THREE.Mesh(geometry, material);
      mesh.position.y = 0.5;
      mesh.castShadow = true;
      mesh.receiveShadow = true;
      mesh.transformable = true;
      mesh.blockType = "midi";
      mesh.note = {value:69, round:69, val:69};
      mesh.linkedTo = [];
      mesh.outType = "freq";
      mesh.xFactor = null;
      mesh.yFactor = null;
      mesh.zFactor = null;
      mesh.oldX = 0;
      mesh.oldY = 0.5;
      mesh.oldZ = 0;
      mesh.factor = 1;
      mesh.updateFrequencies = function()
      {
      	this.note.round = Math.round(this.note.value);
      	for (var son of this.linkedTo)
      	{
      		son[0].audioNode.frequency.value = Math.pow(2,(this.note.round-69)/12)*440; //Note to frequency conversion
      	}
      	return this.note;
      };
      return mesh;
  };
  
  