mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-10-31 14:13:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			300 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			300 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  *  sautils.cpp
 | |
|  *  scorealign
 | |
|  *
 | |
|  *  Created by Roger Dannenberg on 10/20/07.
 | |
|  *  Copyright 2007 __MyCompanyName__. All rights reserved.
 | |
|  *
 | |
|  */
 | |
| 
 | |
| #include "sautils.h"
 | |
| 
 | |
| double interpolate(double x1, double y1, double x2, double y2, double x)
 | |
| {
 | |
|     return y1 + (y2 - y1) * (x - x1) / (x2 - x1);
 | |
| }
 | |
| 
 | |
| 
 |