Repository Public
1// ORIX Sonata2// File: Examples/polyrhythm_3_4_5.sonata3// Description: Three, four and five equal notes per bar at once, written with tuplets; each layer on its own percussion instrument and stereo position.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 1049// expect: tracks 410// expect: duration 21.3333s11// expect: deterministic12composition "Polyrhythm 3:4:5" {13 tempo 90bpm14 signature 4/41516 instrument four: Woodblock {17 gain -8dB18 repeat 8 {19 repeat 4 {20 play C4 duration 1/4 velocity 0.721 }22 }23 }2425 instrument three: Kalimba {26 gain -6dB27 pan -0.628 repeat 8 {29 // Three notes in the time of four quarters.30 tuplet 3 in 4 {31 play E4 duration 1/432 play G4 duration 1/433 play B4 duration 1/434 }35 }36 effects {37 delay slap(mix: 0.15)38 }39 }4041 instrument five: Marimba {42 gain -8dB43 pan 0.644 repeat 8 {45 tuplet 5 in 4 {46 for n in [A3, C4, D4, E4, G4] {47 play n duration 1/4 velocity 0.6548 }49 }50 }51 }5253 instrument downbeat: BoomKick {54 gain -8dB55 repeat 8 {56 play C2 duration 1bar57 }58 }59}60