Skip to content

Clip Node

Clip Node is an AudioWorklet-based audio node designed for high-quality buffer playback in web applications. It goes beyond the built-in AudioBufferSourceNode by offering loop crossfading, precise playhead events, fade in/out curves, and support for loading custom sounds — features commonly needed in game audio and interactive media.

  • Loop Crossfade — Seamless looping with configurable crossfade offsets using equal-power curves
  • Precise Playhead Events — Sample-accurate position callbacks for synchronizing visuals or game logic
  • Fade In / Fade Out — Configurable envelope curves for smooth audio transitions
  • Custom Sound Loading — Load and swap audio buffers at runtime
  • AudioWorklet-based — Runs on a dedicated audio thread for glitch-free playback
  • Game Audio — Looping background music with seamless transitions and synchronized events
  • Interactive Media — Precise audio playback tied to user interactions or animations
  • Music Applications — Buffer-based playback with professional-grade crossfading
LanguageJavaScript / TypeScript
APIWeb Audio API (AudioWorklet)
PlatformBrowser

The source code is available on the project’s GitHub repository.