Basic Player
The simplest wavesurf player. A single sine wave rendered with the default DARK theme and standard controls.
from wavesurf import display_audio
import numpy as np
t = np.linspace(start=0, stop=1, num=24000, dtype=np.float32)
audio = np.sin(2 * np.pi * 440 * t)
display_audio(audio=audio, sr=24000, title="440 Hz Sine Wave")
440 Hz Sine Wave
0:00 / 0:00