What filter is this ?? Filter Order: 2 -> poles for low pass ===========================================================================
| 1109 | // Filter Order: 2 -> poles for low pass |
| 1110 | //=========================================================================== |
| 1111 | static real initFilterChroma (real z) |
| 1112 | { |
| 1113 | static real x[CHROMA_ZEROS + 1] = {0,0,0}; |
| 1114 | static real y[CHROMA_POLES + 1] = {0,0,0}; |
| 1115 | |
| 1116 | x[0] = x[1]; x[1] = x[2]; x[2] = z / CHROMA_GAIN; |
| 1117 | y[0] = y[1]; y[1] = y[2]; y[2] = -x[0] + x[2] + (CHROMA_0*y[0]) + (CHROMA_1*y[1]); // inverted x[0] |
| 1118 | |
| 1119 | return y[2]; |
| 1120 | } |
| 1121 | |
| 1122 | // Butterworth Lowpass digital filter |
| 1123 | // Filter Order: 2 -> poles for low pass |
no outgoing calls
no test coverage detected