started writing my own wavgeneration code but. I think I will wait
and just use the java code