Skip to content

v0.17.0

Latest

Choose a tag to compare

@robmorgan robmorgan released this 22 Nov 03:01

What's Changed

timestretch 0.17.0 adds WebAssembly support and fixes a grain synthesis fault at faster tempos. It ships with timestretch-core 0.17.0 and timestretch-analysis 0.17.0; timestretch-accelerate stays at 0.1.0. There are no breaking changes.

WebAssembly

  • The library builds for wasm32-unknown-unknown unchanged and resolves to the Portable backend there (#87, #93).
  • New unpublished timestretch-wasm crate: wasm-bindgen JavaScript/TypeScript bindings for render and StreamSession, a browser example, and AudioWorklet guidance. Streaming through the bindings produces output identical to the one-shot render.
  • CI checks the wasm target and runs a Node smoke test of the bindings.

Deck app in the browser

  • The desktop deck app also compiles to WebAssembly and is published at https://robmorgan.github.io/timestretch-rs/ (#93). It shares the native app's code; the deck worker and audio scheduling run on the page's main thread, with audio queued 120 ms ahead.
  • The desktop app loads tracks dropped onto its window (#92).

Fixes

  • render and StreamSession no longer fault with "grain requires unavailable padded samples" (#91, #94). At some tempos above 1 a grain could reach 1–4 samples past the buffered input, which stopped the stream until the next seek. Those samples now read as silence at the near-zero end of the window. The issue's reproduction went from 5 faults in 36 renders to none, and a wider grid of 480 renders is fault-free.
  • analyze no longer panics on wasm32-unknown-unknown, which has no clock; AnalysisReport::analysis_elapsed_secs is zero there (#93).

Full Changelog: v0.16.0...v0.17.0