Generate waveform at upload