#ifndef YIN_CPP_H_ #define YIN_CPP_H_ #include // PEDAL SYSTEM PARAMETERS #define SAMPLE_FREQ 44100 #define NUM_CH 5 // YIN PARAMETERS #define WINDOW_LENGTH 1800 #define W (WINDOW_LENGTH / 2) #define TMIN 25 #define TMAX 900 typedef ap_fixed<32, 32>data_t; typedef ap_ufixed<32, 32>udata_t; typedef ap_fixed<32, 32>fixed_t; typedef ap_fixed<32, 24>temp_t; typedef ap_ufixed<32, 28>freq_t; typedef ap_fixed<32, 3>frac_t; typedef ap_ufixed<32, 16>ufrac_t; typedef ap_ufixed<36, 32>scale_t; void yin(udata_t *y, data_t x); #endif