Help Contents / Sound programming / PC speaker / TonesFinished

TonesFinished

outputs an integer number representing the number of Tones threads that are finished. 

Example: 

	to testtones 
		tones [0 1000 2 1000 4 1000 5 1000] waitMS 300 
		tones [4 1000 5 1000 7 1000] waitMS 300 
		tones [7 1000 9 1000] 
		tf=TonesFinished 
		otf=tf 
		print tf 
		tf=tf+3 
		overwriteMode 
		y=Cursor.2-1 
		while [TonesFinished < tf] 
		[	if TonesFinished != otf 
			[	otf=TonesFinished 
				setCursor list 0 y 
				type otf 
			] 
		] 
		insertMode 
		pr [] 
	end 


previous: TonesStop	next: Sound
