Repository Public
1// ORIX Sonata2// File: Examples/fx_width_and_motion.sonata3// Description: Stereo tools: a mono-compatible bass narrowed below 150 Hz, a pad widened then collapsed to mono by automation, an auto-panned arpeggio and a tremolo guitar, so the vectorscope in WaveLab has something to show.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Effects and mixing9// title: Width and Motion10// teaches: stereo_width, autopan, tremolo with stereo phase, pan automation, checking mono compatibility11//12// expect: notes 12713// expect: tracks 414// expect: duration 17.1429s15// expect: deterministic16composition "Width and Motion" {17 tempo 112bpm18 key D major1920 instrument pad: SynthStrings {21 gain -10dB22 effects {23 chorus shimmer(mix: 0.5)24 stereo_width(width: 1)25 }26 // Normal, very wide, then mono: watch the correlation meter.27 automate stereo_width.width {28 0bars: 129 4bars: 230 6bars: 231 8bars: 032 }33 for c in [chord(D3, maj7), chord(B2, min7), chord(G2, maj7), chord(A2, sus4)] {34 chord c + 12st duration 2bars35 }36 }3738 instrument arp: SynthPluck {39 gain -12dB40 effects {41 autopan(rate: 0.5Hz, depth: 0.9, shape: sine)42 }43 repeat 8 {44 for n in [D4, F#4, A4, D5, A4, F#4, E4, A4] {45 play n duration 1/846 }47 }48 }4950 instrument guitar: SteelGuitar {51 gain -9dB52 effects {53 tremolo(rate: 6Hz, depth: 0.7, stereo_phase: 180deg, shape: sine)54 }55 rest 2bars56 repeat 3 {57 chord [D3, A3, D4, F#4] duration 1/158 chord [G2, D3, G3, B3] duration 1/159 }60 }6162 instrument bass: PickBass {63 gain -6dB64 effects {65 stereo_width(width: 0.6, mono_below: 150Hz)66 }67 for root in [D2, B1, G1, A1] {68 repeat 2 {69 play root duration 1/270 play root duration 1/471 play root + 7st duration 1/472 }73 }74 }75}76