16 extern uint32_t
tune[];
18 int main(
int argc,
char *argv[])
20 if (argc == 2 && strncmp(argv[1],
"-t", 2) == 0) {
30 outf = fopen(
"foo.py",
"w");
32 fprintf(
outf,
"samples = [\n");
42 uint32_t msecs = (1000 *
t) / SAMPLING_RATE;
46 fprintf(
outf,
"%u,\n", (uint16_t) (y << 6));
49 fprintf(
gp_outf,
"%d %d\n",
t, (
int) y);
void compute_sample(void)
ISynth * synth_ary[NUM_VOICES]
void use_synth_array(ISynth **s, uint8_t _num_synths)
uint8_t play_tune(uint32_t *tune, uint32_t msecs)
void use_synth(uint8_t i)
int main(int argc, char *argv[])
Synthesizer modules and supporting functions.
uint8_t get_sample(uint32_t *x)