Tone.TransportTime
↳ EXTENDS Tone.TimeTone.TransportTime is a the time along the Transport’s timeline. It is similar to Tone.Time, but instead of evaluating against the AudioContext’s clock, it is evaluated against the Transport’s position. See TransportTime wiki.
CONSTRUCTOR
new Tone.TransportTime (val
 , [ units
 ]
	)
			
		
	Methods
		↳ inherited from
		
		
		Tone.Time
	
	
	
	
		.toNotation ( )
#
			
			
				↪ returns
				
	
		
			
			
			
		
		
					
						Notation
					
				
		
	
			
			
				
			
		
	
Convert a Time to Notation. The notation values are will be the closest representation between 1m to 128th note.
EXAMPLE
//if the Transport is at 120bpm:
Tone.Time(2).toNotation();//returns "1m"
		↳ inherited from
		
		
		Tone.Time
	
	
	
	
		.quantize ( )
#
			
				percent
			
			
				
					
	
	
		Move the time value towards the quantized value by a percentage.
					type: 
	
		
			
			
			
		
		
					
						NormalRange
					
				
		
	
				
				
					
						default:
						1
					
				
			
		
			
			
				↪ returns
				
	
		
			
			
			
		
		
					
						Number
					
				
		
	
			
			
				
	
this
Quantize the time by the given subdivision. Optionally add a percentage which will move the time value towards the ideal quantized value by that percentage.
EXAMPLE
Tone.Time(21).quantize(2) //returns 22
Tone.Time(0.6).quantize("4n", 0.5) //returns 0.55
		↳ inherited from
		
		
		Tone.Time
	
	
	
	
		.toBarsBeatsSixteenths ( )
#
			
			
				↪ returns
				
	
		
			
			
			
		
		
					
						BarsBeatsSixteenths
					
				
		
	
			
			
				
			
		
	
Return the time encoded as Bars:Beats:Sixteenths.
		↳ inherited from
		
		
		Tone.TimeBase
	
	
	
	
		.valueOf ( )
#
			
			
				↪ returns
				
	
		
			
			
			
		
		
					
						Seconds
					
				
		
	
			
			
				
			
		
	
Evaluate the time value. Returns the time in seconds.
		↳ inherited from
		
		
		Tone.TimeBase
	
	
	
	
		.toMilliseconds ( )
#
			
			
				↪ returns
				
	
		
			
			
			
		
		
					
						Milliseconds
					
				
		
	
			
			
				
			
		
	
Return the time in milliseconds.