Tags: posts bitwig-guides Bitwig Tutorial

Bitwig Sampler - Loop Sync and Time-Stretching Techniques for Tempo Matching

Bitwig Guide | Jul 15, 2022

To perfectly sync a drum loop in a sampler to your project tempo, disable key tracking and velocity sensitivity to maintain consistent pitch and loudness, then trigger the loop on every bar instead of relying on loop mode to avoid timing drift. Use warp or stretch modes like textures with a synchronized ramp signal to modulate the playhead and ensure the drum loop follows the project tempo precisely. This method allows creative control over granular sound settings and makes it easy to slow down or speed up the loop while keeping everything in sync.

You can watch the Video on Youtube

Short Overview

I start by loading a drum loop into the sampler, carefully setting the start and end points to make a perfect loop. To keep the pitch and volume consistent no matter which key I press, I turn off key tracking and set the velocity sensitivity to zero. Instead of relying on the sampler's loop mode, which can fall out of sync over time, I use one-shot mode and trigger the loop every bar. By switching to a warp or stretch mode and syncing the playhead with a ramp modulator set to the project tempo, I ensure the drum loop stays perfectly in time with the project no matter how I adjust the speed. This approach also lets me shape the sound and timing of the grains for creative effects, making it both reliable and fun to experiment with.

Setting Up the Drum Loop in the Sampler

I start by loading a drum loop into the sampler. I define the start point at the very first beat and set the end point just before the kick drum of the next bar. This setup ensures that the drum loop plays seamlessly: when it reaches the end, it snaps back to the beginning, creating a perfect continuous loop, kick, snare, kick, snare, and back again. Now, no matter how I trigger it, this section of the sample loops flawlessly.

Disabling Key Tracking for Pitch Consistency

By default, the sampler is set to key tracking, which means the pitch of the loop changes depending on which key I play on my MIDI keyboard. Since I want the drum loop to stay at its original pitch for consistency regardless of what key I hit, I turn off key tracking. Now, every note on my keyboard triggers the sample in its authentic pitch.

Standardizing Velocity for Consistent Loudness

The original setup has velocity sensitivity enabled, which means how hard I press the key affects the volume of the drum loop, sometimes it's too quiet, sometimes too loud. To keep the drum loop at a steady volume regardless of my playing dynamics, I set the velocity sensitivity to zero. Now, each key press produces the drum loop at the same loudness.

Loop Mode vs. One Shot Mode

Initially, I have the option to use loop mode, which causes the sample to loop as long as I hold down the key. This sounds fine in the short term, but over time (for example, after several minutes), small inaccuracies in timing can cause the loop to drift out of sync with the project tempo, resulting in the loop not aligning perfectly with other tracks.

To avoid this sync issue, I switch to one shot mode. Here, I retrigger the drum loop every bar by programming MIDI notes at regular intervals. This way, the loop always starts in sync with the project and never drifts, but now I confront a new problem: the sample no longer perfectly matches the project tempo, it can be too short or too long.

Synchronizing the Drum Loop with Project Tempo

To solve the issue of tempo mismatch, I use the sampler’s time-stretching capabilities. I switch to a warp or stretching mode called "textures," then enable "freeze playhead." In this mode, instead of using the speed control to change tempo, I use it as a position control in the sample.

Next, I need to move the playhead through the sample in perfect sync with the project tempo. I use a ramp signal, a modulation source that smoothly sweeps from 0 to 1 over the length I specify. I set the ramp to synchronize to my project and make it four beats long (one bar). Now, when I play back the sequence, the ramp automates the playhead position, perfectly matching the project’s timing.

If the loop plays too slowly or too quickly, I simply adjust the ramp’s length (for example, using 8 or 16 steps) to fit fractions or multiples of a bar, and thus keep the sample’s timing aligned with the rest of the project.

Creative Flexibility with Granular Settings

Using granular or texture-based stretching modes gives me control over how the time stretching sounds. I can adjust the grain size (how long each audio snippet is), which changes the texture and smoothness of the loop. The motion knob lets me decide how the grains change over time, allowing for subtle or dramatic effects.

Modulators for Variation and Sync

The ramp modulator not only keeps everything in sync, but also offers creative possibilities. I can double the speed (double time), halve it (half time), or use odd time signatures for experimental results, all by adjusting the ramp or note triggers in my MIDI clip.

The Best Way to Synchronize Drum Loops in the Sampler

Retriggering the sample with one shot mode and syncing the playhead with a ramp modulator is, in my experience, the easiest and most reliable way to keep drum loops in perfect syncing with the project tempo in a sampler. I gain precise stretching and synchronization, full control over the sound texture, and creative freedom to experiment, all while ensuring the loop never drifts out of time.

Concepts Explained

Key Tracking

Key tracking refers to how the sampler maps MIDI notes to different pitches, higher keys play back the sample faster (higher pitch), lower keys slower (lower pitch). Disabling key tracking keeps the pitch constant, regardless of which MIDI note triggers the sample.

Velocity Sensitivity

Velocity sensitivity controls how the loudness of the note changes based on how hard you press a MIDI key. Disabling it ensures every triggered sample is the same volume, which is ideal for consistent percussive loops.

One Shot Mode vs. Loop Mode

One shot mode triggers the sample to play through once per note, while loop mode repeats the sample as long as the note is held. One shot mode is better for precise synchronization in looping situations.

Granular or Texture Mode

Granular stretching divides the audio into "grains" and reassembles them according to the new tempo, allowing extreme time stretching with fewer artifacts and creative manipulation of the sound.

Ramp Modulator

A ramp modulator generates a continuous rising control signal, which, when mapped to sample position, can sweep the playhead through a sample in perfect sync with a defined musical time interval.


By using these settings and modulation tools, I ensure my drum loops are always perfectly synchronized with my music, and I gain deep creative control over their playback and sound.

Full Video Transcription

This is what im talking about in this video. The text is transcribed by Whisper, so it might not be perfect. If you find any mistakes, please let me know.
You can also click on the timestamps to jump to the right part of the video, which should be helpful.

Click to expand Transcription

[00:00:00] So let's say we have a sampler here.
[00:00:02] In the sampler I have a drum loop, okay?
[00:00:05] And I already defined here the start point of this,
[00:00:08] which is the first beat.
[00:00:10] And the end point here, which is the, yeah,
[00:00:12] you can see of the next bar basically the kick drum.
[00:00:15] So I defined the end point exactly here.
[00:00:18] So when we go out here and go back to the beginning,
[00:00:21] it's a perfect loop.
[00:00:22] So we have a kick, snare, kick, snare,
[00:00:25] and then it goes back to the first beat, right?
[00:00:29] So when we play here with our keyboard,
[00:00:31] it ends here, right?
[00:00:35] So this is perfectly fine.
[00:00:37] The first problem is we can pitch this
[00:00:40] because key tracking is on.
[00:00:41] So if you go up or down on the keyboard,
[00:00:47] we have different pitches.
[00:00:48] So we want to deselect this
[00:00:50] because we want to have the drum loop in the same pitch.
[00:00:56] So it doesn't matter where I play,
[00:00:58] which key I play on the keyboard,
[00:01:00] it's always in the original pitch.
[00:01:03] The next problem is when we play on the keyboard,
[00:01:06] we have different velocities.
[00:01:08] Sometimes it's quiet, sometimes it's way too loud.
[00:01:12] So it depends on how hard you press the key on the keyboard.
[00:01:15] So we dial down here the velocity sensitivity to zero.
[00:01:19] So every time we press a key,
[00:01:21] it's always the same pitch, it's always the same loudness.
[00:01:25] (upbeat music)
[00:01:27] So it's perfect for drum loops.
[00:01:29] (upbeat music)
[00:01:32] So now that we have this,
[00:01:35] we can of course switch here to a loop mode,
[00:01:38] which is basically like, yeah,
[00:01:42] holding the key on the keyboard
[00:01:43] and it loops over and over again.
[00:01:46] (upbeat music)
[00:01:48] The problem here is when you play a long note,
[00:01:53] then at some point maybe this drum loop
[00:01:56] goes out of synchronization
[00:01:58] because you have a slight offset here.
[00:02:02] It's not really on beat.
[00:02:03] So maybe after 10 minutes or so,
[00:02:06] this becomes out of sync with the whole song,
[00:02:09] with all the other elements in your project.
[00:02:13] So what we do instead is we go back here
[00:02:17] to the one shot mode.
[00:02:18] So we trigger it every bar.
[00:02:20] We do something like this, right?
[00:02:23] (upbeat music)
[00:02:26] So we end here, we do this like this.
[00:02:32] (upbeat music)
[00:02:34] Okay, we trigger this over and over again.
[00:02:37] So now you can see the drum loop
[00:02:39] is not really in sync with our project tempo
[00:02:43] 'cause the loop basically cuts off at this position here.
[00:02:46] So this needs to play back faster.
[00:02:51] So what we do is we go to a kind of a warp mode
[00:02:55] or stretching modes.
[00:02:56] We switch this to textures
[00:02:57] and we also switch this here to a freeze playhead on.
[00:03:03] And when I click this button,
[00:03:05] this speed knob here becomes a play position knob.
[00:03:08] Okay, so now we can define where we want to play
[00:03:12] in our drum loop.
[00:03:16] So when I play this back, this sounds like really wrong.
[00:03:21] Like this, because we don't move the playhead at all.
[00:03:24] We have to do this here.
[00:03:25] Okay, we do this by using a face signal
[00:03:31] or some kind of ramp signal.
[00:03:32] And my preferred way of doing this is using here the ramp.
[00:03:35] And we switch the ramp here to synchronization.
[00:03:39] So we have the ramp exactly here, four beats long.
[00:03:42] So zero to one is exactly measured in four beats.
[00:03:47] And or four 16th notes.
[00:03:50] And when we want to have exactly one bar here,
[00:03:53] then we dial this here to 16.
[00:03:57] So 16, 16 note steps, it's one bar.
[00:04:01] Okay, so all we want to do is basically play now this with this.
[00:04:06] So this modulates the position.
[00:04:12] And then we go here to this.
[00:04:16] And now when we play back this, it's perfectly in sync.
[00:04:20] Right, so it's maybe too slow.
[00:04:26] So we go back here to eight, which is off of 16.
[00:04:30] Right, so now you have here basically a loop
[00:04:35] in the sampler that synchronized to your project tempo.
[00:04:41] So now we can slow down or speed up
[00:04:44] here, the tempo of the project.
[00:04:45] And we can also define up the grain setting,
[00:04:57] how many grains there are and how fast they are played back.
[00:05:02] So you can have some kind of influence
[00:05:05] about how the granular sounds.
[00:05:08] (upbeat music)
[00:05:10] So the grains here a bit longer.
[00:05:15] And then you have also this motion button here
[00:05:25] or motion knob where you can change how the frequent
[00:05:29] or how the grains change over time when they are played back.
[00:05:32] So we can spread them out a bit more.
[00:05:34] (upbeat music)
[00:05:37] So now you have the drum loop synchronized
[00:06:04] to your project tempo.
[00:06:05] When you change the project tempo,
[00:06:07] everything is perfectly in sync.
[00:06:09] You have stretched basically this drum loop here.
[00:06:12] You have influence on how the stretching sounds,
[00:06:15] how it changes the sound,
[00:06:17] and you can settle with whatever you like.
[00:06:21] And you have also this ramp modulator here,
[00:06:23] which you can influence.
[00:06:24] You can double time the drum loop
[00:06:27] or half time the drum loop,
[00:06:28] or maybe take some odd numbers in if you want to.
[00:06:32] And you re-trigger this over and over again here
[00:06:35] with this note in this note clip.
[00:06:39] And this is basically the only way
[00:06:42] to slice or synchronize drum loops in the sampler
[00:06:47] to your project tempo.
[00:06:50] It's probably also the easiest way.
[00:06:52] And yeah, it's also a lot of fun to play around
[00:06:55] with all these parameters and see what comes out of it.
[00:06:58] [BLANK_AUDIO]