1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html 2 3 #ifndef SPECTMORPH_POLY_PHASE_INTER_HH 4 #define SPECTMORPH_POLY_PHASE_INTER_HH 5 6 #include <vector> 7 #include <sys/types.h> 8 9 namespace SpectMorph 10 { 11 12 class PolyPhaseInter 13 { 14 PolyPhaseInter(); ~PolyPhaseInter()15 ~PolyPhaseInter() {} 16 17 std::vector<float> x; 18 19 public: 20 static PolyPhaseInter *the(); 21 22 double get_sample (const std::vector<float>& signal, double pos); 23 double get_sample_no_check (const std::vector<float>& signal, double pos); 24 25 size_t get_min_padding(); 26 }; 27 28 }; 29 30 #endif 31