reorganized generator,  added sound test, scale array to 256