module RemiAudio::Interpolate

Extended Modules

Defined in:

remiaudio/interpolation.cr

Instance Method Summary

Instance Method Detail

def bspline(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs B-Spline interpolation.


[View source]
def cubic(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs cubic interpolation.


[View source]
def hermite(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs hermite interpolation.


[View source]
def hermiteAlt(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs hermite interpolation.

This is an alternate version with slightly different coefficients.


[View source]
def linear(x1 : Float64, x2 : Float64, mu : Float64) : Float64 #

Performs linear interpolation.


[View source]
def optimal2x4P2O(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs optimal 4-point 2nd order interpolation. This expects 2x oversampled data.


[View source]
def optimal32x4P4O(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs optimal 4-point 4th order interpolation. This expects 32x oversampled data.


[View source]
def parabolic2x(x0 : Float64, x1 : Float64, x2 : Float64, x3 : Float64, mu : Float64) : Float64 #

Performs parabolic interpolation. This expects 2x oversampled data.


[View source]