Struggling with waveform animation