Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

TimestretchSyncer

File: Rhapsodist/Processors/TimestretchSyncer.js.

Overview

Keeps a sampler’s timestretch ratio matched to the host tempo, computing newTempo / bpm on every tempo change.

Recommended over the sampler’s built-in tempo sync mode, which is considered awkward by comparison.

Parameters

IDDescription
bpmThe tempo the samples were recorded at, 10–200.

Usage

Place in a sampler’s MIDI Processor chain, set that sampler’s Timestretching mode to VoiceStart or TimeVariant, and set bpm to the tempo the samples were recorded at.

Internal Reference

FunctionDescriptionReturns
updateTimeStretchRatio(newTempo)Registered on the transport handler’s tempo-change callback; divides newTempo by bpm and applies the result as the sampler’s timestretch ratio.—