public static double InterpolateShapeX(double x0, double x1, double y0, double y1, double y, USTx.PitchPointShape shape) { switch (shape) { case USTx.PitchPointShape.io: return(MusicMath.SinEasingInOutX(x0, x1, y0, y1, y)); case USTx.PitchPointShape.i: return(MusicMath.SinEasingInX(x0, x1, y0, y1, y)); case USTx.PitchPointShape.o: return(MusicMath.SinEasingOutX(x0, x1, y0, y1, y)); default: return(MusicMath.LinearX(x0, x1, y0, y1, y)); } }
public static double InterpolateShape(double x0, double x1, double y0, double y1, double x, USTx.PitchPointShape shape) { switch (shape) { case USTx.PitchPointShape.io: return(SinEasingInOut(x0, x1, y0, y1, x)); case USTx.PitchPointShape.i: return(SinEasingIn(x0, x1, y0, y1, x)); case USTx.PitchPointShape.o: return(SinEasingOut(x0, x1, y0, y1, x)); default: return(Linear(x0, x1, y0, y1, x)); } }