I made the B4X version for the Cube Spline. This is just an exercise, but can be used with appropriate modifications for other applications.