SPB Git

Repository Public

hot-cue-juggle.md 3.1 KB

# Hot Cue Juggle

A classic build made with one hot cue: the script stores the position at the start of a bar, lets the bar play once, then jumps back to it on every beat, every half beat and every quarter beat, leaves a gap of silence, and releases. It uses every three times and shows why the hot cue is set before it is used.

# The script

orixdj
automation "Hot Cue Juggle" quantize bar {
    let pad = 8               // hot cue used by this routine (it is overwritten)

    // Bar 1, beat 1: remember this spot.
    deck.A.setHotcue(pad)

    // Bar 1: let the phrase play once.
    wait 1 bar

    // Bar 2: back to the spot on every beat.
    every 1 beat for 1 bar { deck.A.hotcue(pad) }

    // Bar 3: on every half beat.
    every 1/2beat for 1 bar { deck.A.hotcue(pad) }

    // Bar 4: on every quarter beat for two beats, then a two-beat gap of silence.
    every 1/4beat for 2 beats { deck.A.hotcue(pad) }
    deck.A.volume = -60dB
    wait 2 beats

    // Bar 5: release from the spot, at full level.
    deck.A.volume = 0dB
    deck.A.hotcue(pad)
    deck.A.clearHotcue(pad)
}

# What happens, bar by bar

Position What happens
Before bar 1 The automation waits for the next bar line.
Bar 1, beat 1 Hot cue 8 is stored at the playhead.
Bar 1 The track plays normally.
Bar 2 On every beat, the playhead jumps back to the hot cue: the first beat of the phrase repeats four times.
Bar 3 The same on every half beat: eight repeats.
Bar 4, beats 1 and 2 The same on every quarter beat: eight repeats in two beats.
Bar 4, beats 3 and 4 The fader of deck A is closed: two beats of silence.
Bar 5, beat 1 The fader opens, the track restarts from the hot cue, and hot cue 8 is cleared. The automation finishes.

# When to use it

As a build into a drop or a phrase change when the track itself has none. Start it one bar before a strong, recognisable beat, typically a kick with a vocal stab: that beat is what gets repeated.

# Check before running it live

  • Deck A is playing and audible with its fader at 0 dB (the script sets it to 0 dB at the end).
  • Hot cue 8 holds nothing you need: it is overwritten and then cleared.
  • deck.A.quantize is on, so the stored position snaps to the beat.
  • The track continues from the hot cue afterwards, four bars behind where it would have been. If deck A is the master deck, the clock keeps counting forward.

# Notes and variations

deck.A.hotcue(pad) fails with E-ACTION if the hot cue is not set. That is why the script stores it itself with setHotcue first, and why the number is a constant used everywhere.

Each every loop makes its jumps on a fixed grid and then leaves the cursor at the end of its length, so the three sections follow each other without any arithmetic.

To keep the hot cue for later, delete the clearHotcue line. To retrigger without silence, delete the two volume lines and the wait 2 beats, and lengthen the last every to 1 bar.

Files main
Menu

Theme