Repository Public
1// ORIX Sonata2// File: Examples/rh_five_four.sonata3// Description: A 5/4 groove counted 3 + 2: a piano vamp, bass and brushes, with a saxophone-like clarinet line that leans on the long half of the bar.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Rhythm9// title: Five Four10// teaches: 5/4 signature, bars and beats as durations, swing in an odd metre11//12// expect: notes 22013// expect: tracks 414// expect: duration 18.2927s15// expect: deterministic16composition "Five Four" {17 tempo 164bpm18 signature 5/419 key Eb minor20 swing 62%2122 instrument piano: GrandPiano {23 gain -7dB24 pan -0.225 repeat 8 {26 // 3 + 2: the vamp marks beats 1, the "and" of 2, and 4.27 chord [Eb3, Gb3, Bb3] duration 3/8 velocity 0.6528 chord [Eb3, Gb3, Bb3] duration 3/8 velocity 0.529 chord [Db3, F3, Bb3] duration 1/4 velocity 0.630 chord [Db3, F3, Ab3] duration 1/4 velocity 0.531 }32 }3334 instrument bass: DoubleBass {35 gain -4dB36 articulation pizzicato37 repeat 8 {38 play Eb2 duration 3/439 play Bb1 duration 1/440 play Db2 duration 1/441 }42 }4344 instrument brush: BrushSnare {45 gain -12dB46 pan 0.347 repeat 8 {48 for i in 0..10 {49 play D2 duration 1/8 velocity if i == 0 or i == 6 then 0.8 else 0.3550 }51 }52 }5354 instrument lead: Clarinet {55 gain -6dB56 rest 2bars57 repeat 2 {58 play Bb4 duration 3beats59 play Ab4 duration 1beat60 play Gb4 duration 1beat61 play F4 duration 1beat62 play Gb4 duration 1beat63 play Ab4 duration 1beat64 play Bb4 duration 2beats65 play Eb5 duration 3beats66 play Db5 duration 2beats67 play Bb4 duration 5beats68 }69 }70}71