20 #define _USE_MATH_DEFINES 25 #define M_PI 3.14159265358979323846 54 qDebug(
"NCOF::setFreq: freq: %f m_phaseIncrement: %f", freq,
m_phaseIncrement);
72 int phaseQ = imbalance < 0.0 ? phase + (int) (imbalance*
TableSize) : phase;
73 int phaseI = imbalance < 0.0 ? phase : phase + (int) (imbalance*TableSize);
Fixed< IntType, IntBits > cos(Fixed< IntType, IntBits > const &x)
static float m_tableSizeLimit
Real get()
Return current real sample (no phase increment)
Complex nextIQ()
Return next complex sample.
Complex nextQI()
Return next complex sample (reversed)
static bool m_tableInitialized
void setFreq(Real freq, Real sampleRate)
static Real m_table[TableSize+1]
Real next()
Return next real sample.
std::complex< Real > Complex
Complex getQI()
Return current complex sample (no phase increment, reversed)
Complex getIQ()
Return current complex sample (no phase increment)