End Of Set Fade
Ends a set: over sixteen bars the master volume falls to silence while a large reverb grows, then every playing deck is paused, the reverb is removed and the master volume is put back, so that the next thing you play is heard normally. It shows the master volume, a loop over the four decks, and why the restore happens only after the decks have stopped.
The script
automation "End Of Set Fade" quantize bar {
let length = 16 bars
let before = mixer.master.volume
fx.reverb.size = 0.9
fx.reverb.mix = 0
fx.reverb.enable()
// Bars 1-16: the room grows while the level falls.
over length curve easeIn {
mixer.master.volume -> -60dB
fx.reverb.mix -> 0.5
}
// Bar 17: everything is silent; stop the decks and put the master back.
for d in [deck.A, deck.B, deck.C, deck.D] {
if d.playing { d.pause() }
}
fx.reverb.mix = 0
fx.reverb.disable()
mixer.master.volume = before
}What happens, bar by bar
| Position | What happens |
|---|---|
| Before bar 1 | The automation waits for the next bar line. |
| Bar 1, beat 1 | The master volume is remembered. The master reverb is set to a large room, mix 0, and switched on. |
| Bars 1 to 16 | With the easeIn curve, the master volume falls to -60 dB and the reverb mix rises to 0.5. The fade is gentle for the first half and steeper at the end. |
| Bar 17, beat 1 | Each of the four decks is paused if it is playing. The reverb mix is set to 0 and the reverb switched off. The master volume returns to its previous value. The automation finishes. |
When to use it
At the very end of a set, or before handing over to another DJ on other equipment. Not for transitions: it silences everything.
Check before running it live
- You really want silence: every deck that is playing will be paused.
- The master reverb is free to be reconfigured.
- Nothing else is automating the master volume.
- If you stop the automation halfway, the master volume stays down. Type
mixer.master.volume = 0dBin the console, or move the control.
Notes and variations
The order at bar 17 matters: the decks are paused before the master volume is restored. The other way round, the music would come back at full level for an instant.
for d in [deck.A, deck.B, deck.C, deck.D] loops over deck values; inside the loop d.playing and d.pause() address each deck in turn. An empty deck is not playing, so it is skipped.
This script changes the master volume, one of the things worth looking for when you read a script you did not write; see Security Model.