Tone/component/Envelope.js
function invertCurve(curve){
		var out = new Array(curve.length);
		for (var j = 0; j < curve.length; j++){
			out[j] = 1 - curve[j];
		}
		return out;
	}
function invertCurve(curve){
		var out = new Array(curve.length);
		for (var j = 0; j < curve.length; j++){
			out[j] = 1 - curve[j];
		}
		return out;
	}
function invertCurve ( curve ) { var out = new Array ( curve . length ) ; for ( var j = 0 ; j < curve . length ; j ++ ) { out [ j ] = 1 - curve [ j ] ; } return out ; }
Invert a value curve to make it work for the release
@private
Invert a value curve to make it work for the release