annotate tests/xttest_util.hpp @ 285:89fe52066db1 tip master

MSCV missing ssize_t fix
author Jamie Bullock <jamie@jamiebullock.com>
date Tue, 16 Jul 2019 18:29:20 +0100
parents 446f6d3dc809
children
rev   line source
jamie@264 1
jamie@264 2
jamie@264 3 #include <stdint.h>
jamie@264 4
jamie@267 5 // Fill table with sine wave at given frequency and amplitude
jamie@264 6 void xttest_gen_sine(double *table, uint32_t tablesize, double samplerate, double frequency, double amplitude);
jamie@267 7
jamie@269 8 // Fill table with sawtooth wave at given frequency and amplitude
jamie@269 9 void xttest_gen_sawtooth(double *table, uint32_t tablesize, double samplerate, double frequency, double amplitude);
jamie@269 10
jamie@267 11 // Fill table with noise at given frequency and amplitude
jamie@267 12 // N.B. The implementation actually provides "fake" noise from a table for reproducible testing
jamie@264 13 void xttest_gen_noise(double *table, uint32_t tablesize, double amplitude);
jamie@267 14
jamie@267 15 // Add table1 and table2 sample-by-sample leaving the result in table1
jamie@267 16 void xttest_add(double *table1, double *table2, uint32_t tablesize);
jamie@267 17
jamie@267 18 // Multiply table by a constant leavint the result in table
jamie@267 19 void xttest_mul(double *table, uint32_t tablesize, double constant);
jamie@267 20
jamie@267 21 // Return MIDI cent value for frequency
jamie@267 22 uint16_t xttest_ftom(double frequency);