SPB Git

Repository Public

fx_limiter_demo.sonata 1.6 KB 61 lines

1// ORIX Sonata2// File: Examples/fx_limiter_demo.sonata3// Description: A crescendo that would clip: brass chords rise until the sum passes full scale, and the master limiter holds the ceiling at -3 dBFS; render it and read the peak, then change peak_limit to see the difference.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Effects and mixing9// title: The Safety Limiter10// teaches: master block, peak_limit, master effects order, headroom, measuring a render11//12// expect: notes 6513// expect: tracks 414// expect: duration 18.0000s15// expect: deterministic16composition "The Safety Limiter" {17    tempo 80bpm18    key Bb major1920    instrument trumpets: Trumpet {21        gain 0dB22        pan -0.323        for i in 0..8 {24            chord [Bb4, D5, F5] duration 1/2 velocity lerp(0.3, 1.0, i / 7)25        }26        chord [Bb4, D5, F5, Bb5] duration 2bars velocity 127    }2829    instrument horns: FrenchHorn {30        gain 0dB31        pan 0.332        for i in 0..8 {33            chord [Bb3, D4, F4] duration 1/2 velocity lerp(0.3, 1.0, i / 7)34        }35        chord [Bb3, D4, F4] duration 2bars velocity 136    }3738    instrument low: Tuba {39        gain 2dB40        for i in 0..8 {41            play Bb1 duration 1/2 velocity lerp(0.4, 1.0, i / 7)42        }43        play Bb1 duration 2bars velocity 144    }4546    instrument timpani: BoomKick {47        gain 0dB48        rest 4bars49        play C2 duration 2bars50    }5152    master {53        // The fader pushes the mix 6 dB up into the limiter.54        gain 6dB55        peak_limit -3dB56        effects {57            eq(low_cut: 30Hz)58        }59    }60}61
Files main
Menu

Theme