SPB Git

Repository Public

waltz_strings.sonata 2.1 KB 80 lines

1// ORIX Sonata2// File: Examples/waltz_strings.sonata3// Description: A waltz for string orchestra: pizzicato basses on the downbeat, off-beat violas, a legato violin melody with ties across the bar line.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 639// expect: tracks 410// expect: duration 10.1250s11// expect: deterministic12pattern oom_pah_pah(bass: Pitch, c: List<Pitch>) {13    play bass duration 1/414    chord c duration 1/4 staccato15    chord c duration 1/4 staccato16}1718composition "Waltz for Strings" {19    tempo 160bpm20    key A major21    signature 3/42223    let harmony = [chord(A3, major), chord(A3, major), chord(E3, dom7), chord(E3, dom7), chord(D3, major), chord(A3, major), chord(E3, dom7), chord(A3, major)]2425    instrument melody: Violin {26        gain -7dB27        pan -0.328        articulation legato29        play E5 duration 1/230        play C#5 duration 1/431        play A4 duration 3/4 tie32        play A4 duration 1/433        play B4 duration 1/434        play C#5 duration 1/435        play D5 duration 1/236        play B4 duration 1/437        play G#4 duration 3/438        play F#5 duration 1/239        play D5 duration 1/440        play E5 duration 1/241        play C#5 duration 1/442        play B4 duration 1/243        play G#4 duration 1/444        play A4 duration 3/445        effects {46            reverb hall(mix: 0.22)47        }48    }4950    instrument violas: Viola {51        gain -12dB52        pan 0.253        for c in harmony {54            rest 1/455            chord take(c, 2) + 12st duration 1/4 staccato velocity 0.556            chord take(c, 2) + 12st duration 1/4 staccato velocity 0.557        }58        effects {59            reverb hall(mix: 0.22)60        }61    }6263    instrument cellos: Cello {64        gain -9dB65        pan 0.3566        for c in harmony {67            play c[0] - 12st duration 3/4 velocity 0.668        }69    }7071    instrument basses: DoubleBass {72        gain -8dB73        articulation pizzicato74        for c in harmony {75            play max(c[0] - 24st, E1) duration 1/476            rest 1/277        }78    }79}80
Files main
Menu

Theme