init with waveform