Skip to main content

How SonoHush Delivers Gapless Flow Audio

· 2 min read

In most audio apps, previewing a soundscape and committing to a full session feels disjointed: listen to a clip, hit play, and hear the track snap back to 00:00. When you are settling into deep code or dense reading, that reset pulls your attention right back to the surface.

SonoHush merges card browsing and multi-hour playback using a dwell-driven state machine paired with dual music decks.

1. Dwell-Triggered Preloading and Entry​

The moment a card settles, SonoHush starts a lightweight preview.m4a (~400 KB with faststart headers) using a 0.6s fade-in:

  1. Gesture protection: While you are actively dragging a card, the dwell timer pauses. Swiping away fades the previous deck out cleanly over 280ms.
  2. Silent preload at 2.5s: If you stay on a card for 2.5 seconds, the client begins caching the full mix.m4a and the upcoming track in the background without touching your current playback.
  3. Automatic flow handoff at 5.5s: Once the full mix is ready, SonoHush transitions seamlessly into full playback—without jumping back to 00:00.

2. Three Acoustic Rules for Zero-Click Transitions​

  • Master-clock alignment: Both preview.m4a and mix.m4a come from the same 48kHz master, and the catalog stores previewStartSec. When handing off, the full mix starts from the exact musical phrase you are currently hearing.
  • Weak-network self-loop: If a slow connection delays mix.m4a past 22.5s, the preview smoothly crossfades back to 0.8s before hitting its trailing fade-out, handing off as soon as the download completes.
  • 160ms equal-power micro-crossfade: Long overlays between independently encoded AAC files cause phase flanging, while 0ms cuts click. SonoHush locks dual player nodes to hardware audio time and runs a 160ms cosine/sine equal-power crossfade.

3. Silence-Trimmed Dual-Deck Cruising​

During continuous playback, each track's detected trimInSec and cueOutSec strip dead air at both ends. Crossfade length adapts to each scene's energy archetype:

  • Focus Sprint (drivingPulse): 4.0s to preserve forward momentum;
  • Deep Coding / Reading / Cafe (calmSparse / warmGroove): 6.0s balanced blend;
  • Sleep & Meditate (quietDrumless): 8.5s slow, breath-like dissolve.

Next, learn how to shape individual instruments once you are in flow in 4-Stem Mixing for Deep Coding and Reading.