Repository Public
1// ORIX Sonata2// File: Examples/fx_eq_carving.sonata3// Description: Four instruments that fight for the same low-mids, first unequalised for four bars, then with complementary EQ: the bass keeps the bottom, the piano loses 250 Hz, the guitar is high-passed and the pad makes a hole at 2 kHz for the lead.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Effects and mixing9// title: Carving Space10// teaches: eq bands, bypass by automation of mix, low_cut and mid bands, arranging frequencies11//12// expect: notes 18613// expect: tracks 514// expect: duration 19.2000s15// expect: deterministic16composition "Carving Space" {17 tempo 100bpm18 key C minor1920 instrument bass: FingerBass {21 gain -5dB22 effects {23 eq(low_gain: 3dB, low_freq: 80Hz, mid1_freq: 300Hz, mid1_gain: -4dB, mix: 0)24 }25 // Every EQ is off (mix 0) for four bars, then on.26 automate eq.mix {27 0bars: 028 4bars: 0 step29 4bars: 1 step30 }31 repeat 8 {32 play C2 duration 3/833 play C2 duration 1/834 play Eb2 duration 1/435 play G2 duration 1/436 }37 }3839 instrument piano: GrandPiano {40 gain -7dB41 pan -0.242 effects {43 eq(low_cut: 120Hz, mid1_freq: 250Hz, mid1_gain: -6dB, mid1_q: 1.2, high_gain: 2dB, mix: 0)44 }45 automate eq.mix {46 0bars: 047 4bars: 0 step48 4bars: 1 step49 }50 repeat 4 {51 chord [C3, Eb3, G3, Bb3] duration 1/252 chord [C3, Eb3, G3, Bb3] duration 1/2 velocity 0.553 chord [Ab2, C3, Eb3, G3] duration 1/254 chord [Bb2, D3, F3, Ab3] duration 1/2 velocity 0.555 }56 }5758 instrument guitar: NylonGuitar {59 gain -6dB60 pan 0.2561 effects {62 eq(low_cut: 300Hz, mid2_freq: 3000Hz, mid2_gain: 3dB, mix: 0)63 }64 automate eq.mix {65 0bars: 066 4bars: 0 step67 4bars: 1 step68 }69 repeat 8 {70 for n in [C3, G3, C4, Eb4, G4, Eb4, C4, G3] {71 play n duration 1/8 velocity 0.772 }73 }74 }7576 instrument pad: SynthPad {77 gain -13dB78 effects {79 eq(low_cut: 200Hz, mid3_freq: 2000Hz, mid3_gain: -6dB, mid3_q: 0.8, mix: 0)80 }81 automate eq.mix {82 0bars: 083 4bars: 0 step84 4bars: 1 step85 }86 repeat 2 {87 chord [C4, Eb4, G4] duration 2bars88 chord [Ab3, C4, Eb4] duration 1bar89 chord [Bb3, D4, F4] duration 1bar90 }91 }9293 instrument lead: Clarinet {94 gain -8dB95 rest 4bars96 play G5 duration 1/297 play F5 duration 1/498 play Eb5 duration 1/499 play D5 duration 1/2100 play C5 duration 1/2101 play Eb5 duration 3/4102 play D5 duration 1/4103 play C5 duration 1/1104 }105}106