Tone/signal/TickSignal.js
function _wrapScheduleMethods(method){
	return function(value, time){
		time = this.toSeconds(time);
		method.apply(this, arguments);
		var event = this._events.get(time);
		var previousEvent = this._events.previousEvent(event);
		var ticksUntilTime = this._getTicksUntilEvent(previousEvent, time);
		event.ticks = Math.max(ticksUntilTime, 0);
		return this;
	};
}
function _wrapScheduleMethods(method){
	return function(value, time){
		time = this.toSeconds(time);
		method.apply(this, arguments);
		var event = this._events.get(time);
		var previousEvent = this._events.previousEvent(event);
		var ticksUntilTime = this._getTicksUntilEvent(previousEvent, time);
		event.ticks = Math.max(ticksUntilTime, 0);
		return this;
	};
}
function _wrapScheduleMethods ( method ) { return function ( value , time ) { time = this . toSeconds ( time ) ; method . apply ( this , arguments ) ; var event = this . _events . get ( time ) ; var previousEvent = this . _events . previousEvent ( event ) ; var ticksUntilTime = this . _getTicksUntilEvent ( previousEvent , time ) ; event . ticks = Math . max ( ticksUntilTime , 0 ) ; return this ; } ; }
Wraps Tone.Signal methods so that they also
record the ticks.
@param  {Function} method
@return {Function}
@private
Wraps Tone . Signal methods so that they also record the ticks .