mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 23:59:41 +02: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);
|
|
}
|
|
|
|
|