Skip to content

Commit 7d75d2d

Browse files
committed
docs: fix RubberBandWrapper temp array size (512 → 1024 samples)
1 parent dfab7f2 commit 7d75d2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ When patching Circle's `lib/usb/gadget/` to add `CUSBAudioGadget` for combined O
8383
## Live pitch shifting via MIDI control
8484

8585
- **Wrapper instantiation and bypass**: `pLivePitchWrapper` is instantiated unconditionally in `audio.cpp::setup()`. In `loopMachine::update()`, audio is routed through the wrapper ONLY when `pTheAPC->getDebugState().liveEngaged` is true. When pitch shifting is OFF, audio completely bypasses the wrapper for zero-latency passthrough.
86-
- **signalsmith-stretch configuration**: Configured with blockSamples=1024, intervalSamples=256, yielding ~32ms total processing latency at 48kHz. Wrapper buffers input in 512-sample temp arrays and calls `m_stretch.process()` on each feedAudio/retrieveAudio call pair.
86+
- **signalsmith-stretch configuration**: Configured with blockSamples=1024, intervalSamples=256, yielding ~32ms total processing latency at 48kHz. Wrapper buffers input in 1024-sample temp arrays and calls `m_stretch.process()` on each feedAudio/retrieveAudio call pair.
8787
- **Pitch scale formula**: When engaged, `_applyLivePitch()` in `apcKey25Transpose.cpp` calls `pLivePitchWrapper->setPitchScale(pow(2.0f, semitones / 12.0f))`. Semitone range is ±6 depending on MIDI source.
8888
- **CC1 (mod wheel) control**: MIDI CC 1 sets pitch via deadzone logic. Values 59-69 (center range) disengage the effect (`m_liveEngaged = false`), setting scale to 1.0. Values outside deadzone map to ±6 semitones: `semitones = ((data2 - 64) * 6.0f / 63.0f)` and engage the effect.
8989
- **CC52 control**: MIDI CC 52 maps 0-127 linearly to ±6 semitones: `semitones = (data2 / 127.0f) * 12.0f - 6.0f`. This always engages the effect without checking a deadzone.

0 commit comments

Comments
 (0)