24 |
// you can e.g. open it as RAW file in Rezound |
// you can e.g. open it as RAW file in Rezound |
25 |
// (32 bit SP-FP PCM, mono, little endian, 44100kHz) |
// (32 bit SP-FP PCM, mono, little endian, 44100kHz) |
26 |
#ifndef OUTPUT_AS_RAW_WAVE |
#ifndef OUTPUT_AS_RAW_WAVE |
27 |
# define OUTPUT_AS_RAW_WAVE 1 |
# define OUTPUT_AS_RAW_WAVE 0 |
28 |
#endif |
#endif |
29 |
|
|
30 |
// how many sample points should we calculate in one sequence |
// how many sample points should we calculate in one sequence |
84 |
clock_t start_time = clock(); |
clock_t start_time = clock(); |
85 |
|
|
86 |
for (int run = 0; run < RUNS; run++) { |
for (int run = 0; run < RUNS; run++) { |
87 |
pIntLFO->update(0); // pro forma |
pIntLFO->update(127); // pro forma |
88 |
for (int i = 0; i < steps; ++i) { |
for (int i = 0; i < steps; ++i) { |
89 |
pDestinationBuffer[i] = pIntLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load |
pDestinationBuffer[i] = pIntLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load |
90 |
} |
} |
202 |
clock_t start_time = clock(); |
clock_t start_time = clock(); |
203 |
|
|
204 |
for (int run = 0; run < RUNS; run++) { |
for (int run = 0; run < RUNS; run++) { |
205 |
pDiHarmonicLFO->update(0); // pro forma |
pDiHarmonicLFO->update(127); // pro forma |
206 |
for (int i = 0; i < steps; ++i) { |
for (int i = 0; i < steps; ++i) { |
207 |
pDestinationBuffer[i] = pDiHarmonicLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load |
pDestinationBuffer[i] = pDiHarmonicLFO->render() * pAmp[i]; // * pAmp[i] just to simulate some memory load |
208 |
} |
} |