first revision
added duration control
added  baseline freq control
cleanup and added waveform selector