Repository Public
1// ORIX Sonata2// File: Examples/brass_fanfare.sonata3// Description: A fanfare for trumpet, horn, trombone and tuba: marcato and accents, triplet figures, a held chord with a crescendo written as automation.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 389// expect: tracks 410// expect: duration 11.1111s11// expect: deterministic12pattern call(a: Pitch, b: Pitch, c: Pitch) {13 tuplet 3 in 2 {14 play a duration 1/8 staccato15 play a duration 1/8 staccato16 play a duration 1/8 staccato17 }18 play b duration 1/4 marcato19 play c duration 1/2 accent20}2122composition "Brass Fanfare" {23 tempo 108bpm24 key Bb major2526 bus hall {27 effects {28 reverb hall(mix: 100%, decay: 2.2s)29 }30 gain -10dB31 }3233 instrument trumpet: Trumpet {34 gain -8dB35 pan -0.336 send hall -6dB37 call(Bb4, D5, F5)38 call(C5, Eb5, G5)39 call(D5, F5, Bb5)40 play F5 duration 2bars41 automate gain {42 0bars: -20dB43 2bars: -8dB44 }45 }4647 instrument horn: FrenchHorn {48 gain -9dB49 pan 0.150 send hall -4dB51 rest 1bar52 call(F4, Bb4, D5)53 call(G4, Bb4, Eb5)54 play D5 duration 2bars55 automate gain {56 0bars: -22dB57 2bars: -9dB58 }59 }6061 instrument trombone: Trombone {62 gain -8dB63 pan 0.364 send hall -6dB65 repeat 3 {66 play Bb2 duration 1/2 marcato67 play F3 duration 1/2 marcato68 }69 play Bb3 duration 2bars70 automate gain {71 0bars: -22dB72 2bars: -8dB73 }74 }7576 instrument tuba: Tuba {77 gain -6dB78 send hall -10dB79 repeat 3 {80 play Bb1 duration 1bar accent81 }82 play Bb1 duration 2bars83 }84}85