// // Created by david on 04.03.2026. // #ifndef PASADASUPERPROJECT_SIGNAL_H #define PASADASUPERPROJECT_SIGNAL_H #include namespace pd_signal { /** `num` evenly spaced numbers over interval [start,stop] */ void linspace(std::vector& data, double start, double stop, int num); /** `num` evenly spaced numbers over interval [start,stop] with endpoint=true or [start,stop) with endpoint=false */ void linspace(std::vector& data, double start, double stop, int num, bool endpoint); /** * Evaluate at points x the function given by the samples fp[xp[n]]. * Returned in y. */ void interp(std::vector& y, std::vector& x, std::vector& xp, std::vector& fp); /** resample to BEAT_LEN */ void resample(std::vector &out, std::vector x, int beat_len); } #endif //PASADASUPERPROJECT_SIGNAL_H