Metlivi Blog

How Pitch Envelope Timing Interacts with Sample Length

A pitch envelope’s timing determines how quickly pitch moves, while sample playback determines how much audio remains available for that movement. In conventional variable-speed sampling, the envelope also changes playback duration: higher pitch consumes the sample faster, and lower pitch consumes it more slowly. To make a sweep finish audibly, set its timing against the resulting playback, including any volume fade.

This guide is for producers shaping sampled percussion or other short sounds. The concrete task is to make a pitch movement reach its intended destination before the sound ends, while leaving enough audible material to hear the settled pitch.

October 29, 20267 min readBy Metlivi Editorial Team
Section 1

What length should you compare with the pitch envelope?

Start by separating three measurements: the original file’s duration, the selected playback region’s duration, and the duration you actually hear. They can differ substantially. A long file can contain a short selected region; a long selected region can become inaudible well before its endpoint.

Ableton’s Sampler documentation explicitly states that Sample End stops unlooped playback even when the volume envelope has not finished. It also describes the opposite limit: playback can finish when the volume envelope completes its release. Live Instrument Reference — Ableton Reference Manual Version 12

For editing purposes, use the audible playback as your reference. Temporarily bypass effects with long tails, trigger one isolated note, and listen for where the sample itself finishes. Then compare that endpoint with the moment the pitch reaches its destination. This listening test avoids mistaking an effect tail for remaining sample material.

Section 2

Does a pitch envelope automatically fit the sample?

Do not assume that an envelope drawing stretches to match the waveform. Check whether its horizontal controls specify milliseconds, beats, or positions tied to sample playback. A time value describes a modulation stage; it does not, by itself, establish a relationship with the file’s endpoint.

Native Instruments describes envelopes as curves that change parameters over time, typically in response to MIDI notes. Its Kontakt documentation distinguishes these from repeating LFO modulation and identifies AHDSR as an envelope with an additional Hold stage. Verify that you are editing the envelope assigned to pitch before changing its timing. Advanced modulation and automation tricks in Kontakt

In an ADSR pitch envelope, attack moves toward the peak, decay moves toward sustain, and release moves toward the end level after note-off. Sustain is a level rather than a fixed duration. Consequently, adding attack, decay, and release values does not necessarily predict when a held note’s pitch movement will finish. Live Instrument Reference — Ableton Reference Manual Version 12

Define your target more precisely than “finish the envelope.” For a descending percussion sweep, the useful target might be “reach the base pitch 60 milliseconds after triggering.” For a release bend, it might be “reach the final pitch after note-off.” Those targets require different envelope stages and different MIDI timing.

Section 3

How does changing pitch change playback duration?

In variable-speed playback, pitch and duration are linked. Ableton’s explanation of Re-Pitch gives the basic relationship: doubling playback speed raises pitch by one octave. Its manual also notes that Re-Pitch disables the sample transposition controls because playback speed directly determines pitch. Audio Clips, Tempo, and Warping — Ableton Reference Manual Version 12

For constant transposition in twelve-tone equal temperament, the corresponding calculation is playback duration = selected source duration ÷ 2^(semitones ÷ 12). The following values are calculated examples for a 300-millisecond region, assuming conventional variable-speed playback, no looping, and no earlier volume cutoff.

Constant transposition Playback speed Calculated duration
−12 semitones 0.5× 600 ms
0 semitones 1× 300 ms
+12 semitones 2× 150 ms

A moving pitch envelope requires another step: playback speed changes throughout the sweep. You cannot calculate its duration from the starting pitch alone, or simply average the starting and ending semitone values. You must account for how much source audio each part of the movement consumes.

Section 4

Can a sweep finish but leave almost no settled sound?

Yes. Consider an illustrative 300-millisecond sample region. Assume it starts at +12 semitones, descends linearly in semitones to zero over 200 milliseconds, then remains at the original pitch. Playback is unlooped and variable-speed, with no amplitude fade or other transposition.

During the sweep, speed falls from 2× to 1×. Because the envelope is linear in semitones, the speed follows r(t) = 2^(1 − t/D), where D is the sweep duration and t is elapsed playback time. Integrating that speed over the sweep gives source consumed = D ÷ ln(2).

For a 200-millisecond sweep, that is approximately 288.54 milliseconds of source audio consumed. Only 11.46 milliseconds remain. At the destination pitch, that remainder plays at 1× speed, so the complete playback lasts about 211.46 milliseconds. These are mathematical results for the stated assumptions, not measurements from a sampler.

The sweep technically reaches its destination, but the settled portion lasts only about 11 milliseconds. If your goal is an obvious pitched body after the initial movement, shortening the sweep can be more useful than merely making it finish.

Sweep from +12 to 0 semitones Source consumed during sweep Remaining playback at base pitch
40 ms 57.71 ms 242.29 ms
80 ms 115.42 ms 184.58 ms
200 ms 288.54 ms 11.46 ms

This comparison provides a practical decision aid: choose both a sweep duration and a desired settled duration. A sweep that occupies nearly all available playback may suit a continuously bending sound; an onset accent needs room afterward. Different envelope curves will produce different figures, so use this calculation as a model for understanding the interaction.

Section 5

How should you set the timing in practice?

Use a controlled comparison before adjusting the full patch:

  1. Establish the region. Choose the sample start and end, and initially disable looping.
  2. Establish the destination. Bypass pitch modulation and tune the underlying sample as intended.
  3. Expose the playback. Use a volume shape that lets you hear the region, and hold the note long enough for the test.
  4. Add one pitch movement. Set its starting offset and destination, then compare several durations while keeping the pitch range unchanged.
  5. Listen beyond the sweep. Decide whether enough audible sound remains at the destination.
  6. Restore the musical conditions. Reapply the intended volume shape and test the actual notes, velocities, and note lengths.

Treat pitch depth and time as separate decisions. First choose a useful pitch range, then compare timing at that range. Otherwise, a deeper sweep can change both the character and the amount of source consumed, making the cause of a shorter result difficult to identify.

For a diagnostic comparison, record isolated versions with the pitch envelope bypassed, shortened, and lengthened. Keep the selected region and MIDI input identical. Comparing these recordings helps establish whether your next edit should change the movement itself or provide more audible material after it.

Section 6

Why can the sample stop before the pitch movement finishes?

Check note handling and the amplitude envelope before extending the sample. Native Instruments’ Kontakt one-shot instructions require both selecting One Shot in the Sample Loop area and bypassing the volume envelope or setting its release appropriately. This is a concrete example of playback mode and volume shaping needing separate attention. How to Set Up a Sample to Play in One-Shot Mode in Kontakt

Use the symptom to choose the next test:

What you hear Controlled test What the result helps establish
The sound ends when you release the key Hold one note longer Whether note-off limits the audible movement
The sweep reaches its destination but has little body afterward Shorten only the sweep Whether too much material is consumed before settling
The endpoint changes when pitch depth changes Compare with modulation bypassed Whether variable playback speed contributes
Isolated notes work, but the pattern cuts them short Increase spacing between triggers Whether overlapping triggers affect the result
The recording continues but the bend becomes difficult to hear Temporarily simplify the volume shape Whether the ending is too quiet for useful judgment

Change one condition per test. A longer release cannot recover source audio that has already reached its endpoint, while a longer source region may accomplish little if the volume falls away first. The useful adjustment follows from identifying which event ends the audible sound.

Section 7

What changes with time stretching or looping?

Time stretching can separate pitch from playback duration. Ableton’s Simpler support documentation explicitly describes changing pitch without changing speed, or changing speed without changing pitch. When that processing is active, the variable-speed calculations above may no longer describe the result. Warping in Simpler

Confirm the actual algorithm rather than relying on an enabled Warp switch. Re-Pitch deliberately links speed and pitch, whereas other warping approaches support different relationships. When changing algorithms, repeat the isolated-note test before reusing an envelope setting. Audio Clips, Tempo, and Warping — Ableton Reference Manual Version 12

Looping changes the available material by repeating part of the sample. Ableton’s Sampler manual documents sustain loops that continue repeating while the volume envelope permits playback. This can provide material for a longer pitch movement, although the repeated region must also suit the sound you want. Live Instrument Reference — Ableton Reference Manual Version 12

Set pitch envelope timing around an audible musical event: the moment the sound should settle, turn, or finish. Then verify that playback supplies enough material for that event and its intended aftermath. Once the region, playback algorithm, note handling, and volume shape are established, envelope timing becomes a deliberate sound-design choice.

Section 8

Sources

Related reading

Keep exploring this topic