import { fract } from "@thi.ng/math/prec" ; import type { StatelessOscillator } from "./api.js" ; remarks param phase param freq param amp param dc export const parabolic = ( phase , freq , amp = 1 , dc = 0 ) => dc + amp * ( 8 * ( fract ( phase * freq ) - 0.5 ) ** 2 - 1 ) ;