← Gallery Effects — trim, split, stretch, shift, remix

Effects — trim, split, stretch, shift, remix

effects/index.js

One test signal, run through the classic sampler moves: trim away the silence, stretch it to double speed without changing its pitch, shift it up an octave without changing its length, split the tone apart from the clicks, and swap the two halves — use the buttons to audition original vs stretched vs shifted. Technically the signal is 2 s at 22050 Hz: silence + a 1 s 440 Hz burst carrying 4 clicks + silence (burst edges exactly [11025, 33075]). Badges mirror examples/node/effects.mjs: exact centered-frame trim/split golden [10240, 34304] with enclosure, preemphasis→deemphasis round-trip, exact time_stretch lengths with pitch preserved, pitch_shift +12 → 880 Hz, waveform-level HPSS 440 Hz-bin dominance, and remix reversing the burst halves (bit-exact at align_zeros: false). The waveform shows the trim edges (gold) around the burst.