Repository Public
1// ORIX Sonata2// File: Examples/fx_delay_throws.sonata3// Description: A dry vocal-like lead whose last word of each phrase is "thrown" into a ping-pong delay: the delay mix is automated with step curves so only chosen notes echo.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Effects and mixing9// title: Delay Throws10// teaches: automate an effect parameter, step curves, ping-pong delay, tempo-synced delay time11//12// expect: notes 7213// expect: tracks 314// expect: duration 20.0000s15// expect: deterministic16composition "Delay Throws" {17 tempo 96bpm18 key B minor1920 instrument lead: SynthLead {21 gain -9dB22 effects {23 delay(mode: ping_pong, time: note_value(3/16), feedback: 0.55, mix: 0, high_cut: 4000Hz)24 }25 // Closed for three beats and a half, open for the last note, closed again.26 automate delay.mix {27 0bars: 028 7/8: 0 step29 1bar: 0.7 step30 2bars: 0 step31 23/8: 0 step32 3bars: 0.7 step33 4bars: 0 step34 39/8: 0 step35 5bars: 0.7 step36 6bars: 0 step37 55/8: 0 step38 7bars: 0.8 step39 }40 repeat 4 {41 play B4 duration 1/442 play D5 duration 1/843 play C#5 duration 1/844 play B4 duration 1/445 play A4 duration 1/846 play F#5 duration 1/8 accent47 rest 1bar48 }49 }5051 instrument keys: ElectricPiano {52 gain -9dB53 pan -0.254 for c in [chord(B2, min7), chord(G2, maj7), chord(E2, min7), chord(F#2, dom7)] {55 chord c + 12st duration 2bars velocity 0.556 }57 }5859 instrument bass: FingerBass {60 gain -6dB61 for root in [B1, G1, E1, F#1] {62 repeat 2 {63 play root duration 3/864 play root duration 1/8 velocity 0.565 play root + 7st duration 1/466 play root + 12st duration 1/467 }68 }69 }70}71