foreground et background deviennent waveform_fg et waveform_bg