Repository Public
1# Long EQ Blend23A transition in the style of a three-band EQ mix: deck B enters at full fader level but with all three EQ bands cut, and the bands change hands one after the other. The two tracks never play the same band at full level together, which keeps a long blend clean. It also shows a guard at the top, a procedure with deck parameters, and controls being restored at the end.45## The script67```orixdj8fn swapBand(from: deck, to: deck, length: duration) {9 // The highs change hands over the given length.10 over length {11 from.eq.high -> -26dB12 to.eq.high -> 0dB13 }14}1516automation "Long EQ Blend" quantize bar {17 if not deck.B.loaded or deck.B.playing {18 print("Deck B must be loaded and paused.")19 stop20 }2122 // Deck B enters with its three bands cut, fader fully up.23 deck.B.sync(true)24 deck.B.eq.low = -26dB25 deck.B.eq.mid = -26dB26 deck.B.eq.high = -26dB27 deck.B.volume = 0dB28 deck.B.play()2930 // Bars 1-4: highs change hands.31 swapBand(deck.A, deck.B, 4 bars)3233 // Bars 5-8: mids change hands.34 over 4 bars {35 deck.A.eq.mid -> -26dB36 deck.B.eq.mid -> 0dB37 }3839 // Bar 9: bass swap on the one, then four bars for the rest of deck A to leave.40 deck.A.eq.low = -26dB41 deck.B.eq.low = 0dB42 over 4 bars { deck.A.volume -> -60dB }4344 // Bar 13: deck A out, controls restored.45 deck.A.pause()46 deck.A.eq.low = 0dB47 deck.A.eq.mid = 0dB48 deck.A.eq.high = 0dB49 deck.A.volume = 0dB50}51```5253## What happens, bar by bar5455| Position | What happens |56| --- | --- |57| 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 without touching anything. |58| Bar 1, beat 1 | Deck B is synced, its three EQ bands are killed, its fader is opened and it starts. Nothing of deck B is audible yet. |59| Bars 1 to 4 | `swapBand` runs: the highs of deck A fall to a full cut while the highs of deck B rise to 0 dB. |60| Bars 5 to 8 | The mids change hands in the same way. |61| Bar 9, beat 1 | Bass swap on the one: deck A low killed, deck B low restored. |62| Bars 9 to 12 | Deck A, now without any band, fades out on its fader. |63| Bar 13, beat 1 | Deck A is paused; its three bands and its fader are restored. The automation finishes. |6465## When to use it6667For long, smooth blends between two tracks of similar energy, typically house and techno, where both tracks can play together for a while. Start it so that bar 9, the bass swap, falls on the first bar of a phrase in both tracks: that is, eight bars before the phrase change.6869## Check before running it live7071- Deck A is playing and is the master deck; deck B is loaded, paused and cued on a phrase start.72- Both tracks have an analysed tempo, otherwise `sync` cannot match them.73- The EQ of deck A is flat (0 dB). The ramps start from wherever the bands are.74- The channel filters of both decks are off.75- The fader of deck B will be set to 0 dB: make sure the crossfader or the cue routing does not make that a problem.7677## Notes and variations7879The procedure `swapBand` is called directly, so it takes its four bars in the main sequence. The mids are written inline to show both styles; you could write a second procedure, or give `swapBand` the band as separate statements.8081To make the blend 24 bars long, change the three `4 bars` to `8 bars`. To go from B to A, exchange the deck letters, including in the guard.8283If you stop the automation in the middle, the EQ bands stay where they were at that moment. A small reset automation, as shown in [Automation Scheduling](../scheduling.md), puts a channel back.8485## Related8687- [First Automation](../first-automation.md)88- [Functions](../functions.md)89- [Timing](../timing.md)90- [Presets](../presets.md)91- [Examples](README.md)92