Repository Public
1// ORIX Sonata2// File: Examples/automation_sweep.sonata3// Description: Automation: a filter sweep on an instrument parameter, a fader fade-in and fade-out, and an effect mix that opens at the end.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 829// expect: tracks 210// expect: duration 15.4839s11// expect: deterministic12composition "Automation Sweep" {13 tempo 124bpm14 key D minor1516 instrument pad: SynthPad {17 gain -10dB18 // Declared at the cursor (position 0): positions are relative to it.19 automate gain {20 0bars: -40dB21 2bars: -10dB exp22 6bars: -10dB23 8bars: -50dB24 }25 automate instrument.filter.cutoff {26 0bars: 300Hz27 4bars: 6000Hz exp28 8bars: 500Hz exp29 }30 effects {31 reverb hall(mix: 0.1)32 }33 automate reverb.mix {34 0bars: 0.135 6bars: 0.1 step36 8bars: 0.737 }38 for c in [chord(D3, min9), chord(Bb2, maj9), chord(F3, maj7), chord(C3, add9)] {39 chord c duration 2bars40 }41 }4243 instrument pulse: SynthPluck {44 gain -14dB45 automate pan {46 0bars: -0.847 8bars: 0.848 }49 repeat 8 {50 for n in [D4, A4, D5, A4, F4, A4, D5, F5] {51 play n duration 1/8 velocity 0.652 }53 }54 effects {55 delay(time: note_value(3/16), feedback: 0.3, mix: 0.2)56 }57 automate delay.feedback {58 0bars: 0.259 8bars: 0.760 }61 }6263 master {64 automate gain {65 0bars: 0dB66 8bars: 0dB67 9bars: -60dB68 }69 }70}71