fix mixer edge create/destroy
stupid version that runs and doesnt crash
use period size from input
I hear music
some minor touchups
kr patch codegen