SPB Git

Repository Public

bends_and_glides.sonata 1.6 KB 54 lines

1// ORIX Sonata2// File: Examples/bends_and_glides.sonata3// Description: Pitch bends as music: a synth lead that scoops into its notes, a cello glissando and a quarter-tone inflection, over a drone.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 139// expect: tracks 310// expect: duration 12.6316s11// expect: deterministic12pattern scoop(n: Pitch, d: Duration) {13    // Start a whole tone flat and arrive in 80 ms.14    play n duration d bend { 0ms: -2st, 80ms: 0st }15}1617composition "Bends and Glides" {18    tempo 76bpm19    key D dorian2021    instrument lead: SynthLead {22        gain -12dB23        pan 0.224        scoop(D5, 1/4)25        scoop(F5, 1/4)26        scoop(A5, 1/2)27        // A slow vibrato drawn by hand: five points of a bend curve.28        play G5 duration 1/1 bend { 0ms: 0st, 400ms: 0st, 600ms: 0.4st, 800ms: -0.4st, 1000ms: 0st }29        scoop(E5, 1/2)30        // Fall away at the end of the phrase.31        play D5 duration 1/2 bend { 0ms: 0st, 500ms: 0st, 1400ms: -12st }32        effects {33            delay echo(mix: 0.2)34            reverb plate(mix: 0.2)35        }36    }3738    instrument cello: Cello {39        gain -7dB40        pan -0.241        // A two-second glissando up a fifth, then a quarter-tone lean on the last note.42        play D3 duration 1/1 bend { 0s: 0st, 1s: 0st, 3s: 7st }43        play A3 duration 1/244        play G3 duration 1/245        play F3 + 50cents duration 1/146        play D3 duration 1/247    }4849    instrument drone: SynthStrings {50        gain -18dB51        chord [D2, A2] duration 4bars velocity 0.552    }53}54
Files main
Menu

Theme