Made precomputed data global. Added precomputation source file.
commitf2df7f51c7dce39a8689c59b22ef151302a6ae1e
authorEvanR <evanrinehart@gmail.com>
Mon, 8 Jun 2009 21:28:00 +0000 (8 17:28 -0400)
committerEvanR <evanrinehart@gmail.com>
Mon, 8 Jun 2009 21:28:00 +0000 (8 17:28 -0400)
treefe537848c9a271531abeaa779ca3790cc26147e5
parentf677a4cce664c3def5fb20ebc21ce7f37907631b
Made precomputed data global. Added precomputation source file.

Now all 'instances' of a synth use the same waveform data, saving
memory. It is generated when the first instance is initialized.
No it is not multithread safe, so do not initially create two
synths at the same time.

core.c now contains code for generating sound and controlling the
synth state. precompute.c contains code for generating the static
data used by core.c.
build.sh
constants.h [new file with mode: 0644]
core.c
instruments.h
precompute.c [new file with mode: 0644]