我是 C++ 新手,我正在尝试从 Synthesis Toolkit 中理解 SineWave 类。描述说:
This class computes and saves a static sine "table" that can be shared by multiple instances. It has an interface similar to the WaveLoop class but inherits from the Generator class. Output values are computed using linear interpolation.
所以我猜它根本不计算正弦?如果它在正弦波的高点和低点之间使用线性插值,那不就是三角波吗?有人可以解释计算的作用吗?