Move synth generator functions to their own file

Also made the ASDR state typedef more idiomatic