Repository Public
1# Acapella Layer23Uses a third deck as a layer: an acapella or a percussion loop on deck C comes in under deck A, rides for a while, and leaves, while the mids of deck A are lowered a little to make room. It shows a third deck, key lock, and two controls on different decks ramped together.45## The script67```orixdj8automation "Acapella Layer" quantize bar {9 let layerLevel = -3dB10 let duck = -4dB1112 if not deck.C.loaded {13 print("Load the acapella on deck C first.")14 stop15 }1617 // Bar 1: the acapella starts silent, in time, with its low end removed.18 deck.C.sync(true)19 deck.C.keylock = true20 deck.C.eq.low = -26dB21 deck.C.volume = -60dB22 deck.C.play()2324 // Bars 1-2: bring it in and make room for it in the mids of deck A.25 over 2 bars {26 deck.C.volume -> layerLevel27 deck.A.eq.mid -> duck28 }2930 // Bars 3-8: let it ride.31 wait 6 bars3233 // Bars 9-10: take it out and give deck A its mids back.34 over 2 bars {35 deck.C.volume -> -60dB36 deck.A.eq.mid -> 0dB37 }3839 // Bar 11: stop the layer and restore its channel.40 deck.C.pause()41 deck.C.eq.low = 0dB42 deck.C.volume = 0dB43}44```4546## What happens, bar by bar4748| Position | What happens |49| --- | --- |50| Before bar 1 | The automation waits for the next bar line. If deck C is empty it prints a message and stops. |51| Bar 1, beat 1 | Deck C is synced with key lock on, its low EQ is killed, its fader is closed, and it starts. |52| Bars 1 and 2 | Deck C rises to -3 dB while the mids of deck A dip to -4 dB. |53| Bars 3 to 8 | The layer plays over the track. |54| Bars 9 and 10 | Deck C fades out and the mids of deck A return to 0 dB. |55| Bar 11, beat 1 | Deck C is paused; its low EQ and fader are restored. The automation finishes. |5657## When to use it5859For a vocal over an instrumental section, or a percussion loop over a breakdown. Ten bars in total; start it so that bar 1 is where the vocal phrase should begin.6061## Check before running it live6263- Deck C is loaded with the layer, paused, and cued on the first beat of the phrase to use.64- The layer has an analysed tempo, so that `sync` can match it to the master clock.65- Deck A is playing with its mid EQ at 0 dB.66- The keys of the two tracks are compatible: check the key displays; the script does not.67- Deck C's channel is routed to the master as you expect.6869## Notes and variations7071Key lock keeps the pitch of the vocal when sync changes its tempo. It is left on for deck C afterwards.7273The low EQ of the layer is killed because an acapella rarely needs anything below the vocal, and what is there tends to clash with the bass of the main track.7475Without the guard, `deck.C.play()` on an empty deck would cancel the automation with `E-ACTION` after sync and EQ had already been changed. The guard makes the failure clean.7677For a longer ride, change `wait 6 bars`. To drop the layer on a cut instead of a fade, replace the last `over` block by `deck.C.volume = -60dB` and `deck.A.eq.mid = 0dB`.7879## Related8081- [Conditions](../conditions.md)82- [Timing](../timing.md)83- [Deck Commands](../deck-api.md)84- [Presets](../presets.md)85- [Examples](README.md)86