SPB Git

Repository Public

build-and-drop-swap.md 3.8 KB 86 lines markdown

1# Build And Drop Swap23A complete drop swap: deck A builds for eight bars with a rising high-pass and a noise riser, tightens into a loop roll in the last two bars, goes silent for one beat, and deck B takes the drop. It is the example to study for `at`: four blocks are scheduled first and fire while one long ramp runs.45## The script67```orixdj8automation "Build And Drop Swap" quantize bar {9    if not deck.B.loaded or deck.B.playing {10        print("Deck B must be loaded, paused and cued on its drop.")11        stop12    }1314    deck.B.sync(true)15    deck.B.volume = 0dB1617    fx.noise.level = -60dB18    fx.noise.cutoff = 500Hz19    fx.noise.enable()2021    // Scheduled first, so that they overlap the ramp below.22    at bar 7 { deck.A.loop(1 beat) }               // bar 7: one-beat roll23    at bar 8 { deck.A.loopHalve() }                // bar 8: half-beat roll24    at beat 31 { deck.A.loopHalve() }              // last two beats: quarter-beat roll25    at beat 32 { deck.A.volume = -60dB }           // last beat: silence before the drop2627    // Bars 1-8: the build.28    over 8 bars curve exp {29        deck.A.filter.highpass -> 1200Hz30        fx.noise.level -> -12dB31        fx.noise.cutoff -> 10kHz32    }3334    // Bar 9: the drop belongs to deck B.35    deck.B.play()36    fx.noise.disable()37    deck.A.pause()38    deck.A.loopExit()39    deck.A.filter.highpass = 20Hz40    deck.A.volume = 0dB41}42```4344## What happens, bar by bar4546| Position | What happens |47| --- | --- |48| Before bar 1 | The automation waits for the next bar line. If deck B is empty or already playing it prints a message and stops. |49| Bar 1, beat 1 | Deck B is synced and its fader opened, but it is not started. The noise effect of the master rack is switched on, silent. Four blocks are scheduled. The eight-bar ramp starts. |50| Bars 1 to 8 | With the `exp` curve, slow for a long time and very fast at the end: deck A's high-pass rises towards 1.2 kHz, the noise rises towards -12 dB and its band moves from 500 Hz towards 10 kHz. |51| Bar 7, beat 1 | Deck A starts a one-beat loop. |52| Bar 8, beat 1 | The loop is halved: half a beat. |53| Bar 8, beat 3 | Halved again: a quarter beat. |54| Bar 8, beat 4 | Deck A's fader closes. The noise riser plays alone for the last beat. |55| Bar 9, beat 1 | Deck B starts on its drop. The noise is switched off. Deck A is paused, its loop released, its high-pass and fader restored. The automation finishes. |5657## When to use it5859To move from one track to another at a drop rather than through a blend. Start it eight bars before the point where the drop should hit.6061## Check before running it live6263- Deck A is playing, with a beat grid, and no loop you want to keep.64- Deck B is loaded, paused, and cued exactly on the first beat of its drop.65- Both tracks have an analysed tempo.66- Deck A's high-pass is at 20 Hz; the ramp starts from wherever it is.67- The master noise effect is free to be reconfigured, and the master rack has room for it.6869## Notes and variations7071The four `at` statements are written before the `over` block on purpose. `at` does not move the cursor, so all of them are read at the start, and the ramp then begins at the start too. Written after the ramp, they would all be in the past and run at once on bar 9.7273Positions count from 1: `at bar 7` is 24 beats in, `at beat 31` is the third beat of bar 8, `at beat 32` is the last beat before the drop.7475Everything after the `over` block happens on the same beat, in the order written: deck B starts first, then deck A is cleaned up. Because deck A's fader was closed one beat earlier, restoring its controls after `pause()` is inaudible.7677Deck B starts in phase with the master clock because it is synced and its quantize is on.7879## Related8081- [Timing](../timing.md)82- [Beats and Bars](../beats-and-bars.md)83- [Automation Scheduling](../scheduling.md)84- [Effects Commands](../effects-api.md)85- [Examples](README.md)86
Files main
Menu

Theme