SPB Git

Repository Public

fx_ducking.sonata 1.7 KB 68 lines

1// ORIX Sonata2// File: Examples/fx_ducking.sonata3// Description: The pumping sound of sidechain compression, written out: the pad's gain dips on every kick and recovers exponentially, generated by a loop of automation statements at each beat.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Effects and mixing9// title: Ducking the Pad10// teaches: automation relative to the cursor, automate inside a loop, exp curves, kick and pad interplay11//12// expect: notes 11213// expect: tracks 414// expect: duration 15.7377s15// expect: deterministic16composition "Ducking the Pad" {17    tempo 122bpm18    key F minor1920    instrument kick: Kick {21        gain -3dB22        repeat 32 {23            play C2 duration 1/424        }25    }2627    instrument pad: SynthPad {28        gain -9dB29        // One short lane per beat: down 14 dB at the kick, back up over the beat.30        voice {31            repeat 32 {32                automate gain {33                    0beats: -23dB34                    1/4: -9dB exp35                }36                rest 1/437            }38        }39        voice {40            for c in [chord(F3, min9), chord(Db3, maj7), chord(Ab2, maj7), chord(Eb3, sus4)] {41                chord c duration 2bars42            }43        }44        effects {45            reverb hall(mix: 0.2)46        }47    }4849    instrument bass: SubBass {50        gain -9dB51        for root in [F1, Db1, Ab1, Eb1] {52            repeat 8 {53                rest 1/854                play root + 12st duration 1/855            }56        }57    }5859    instrument hat: OpenHat {60        gain -16dB61        pan 0.362        repeat 32 {63            rest 1/864            play A#2 duration 1/8 staccato65        }66    }67}68
Files main
Menu

Theme