Repository Public
1// ORIX Sonata2// File: Examples/tempo_and_meter.sonata3// Description: Tempo changes and a ritardando ramp, asymmetric and changing meters, markers.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 339// expect: tracks 210// expect: duration 12.5263s11// expect: deterministic12pattern seven(root: Pitch) {13 // 7/8 grouped 2 + 2 + 3.14 play root duration 1/4 accent15 play root + 7st duration 1/416 play root + 12st duration 1/8 accent17 play root + 7st duration 1/818 play root + 3st duration 1/819}2021composition "Tempo and Meter" {22 tempo 152bpm23 key A phrygian24 signature 7/825 marker "A"26 // Meter and tempo changes are declared once here, so every track sees them.27 at 4bars {28 signature 4/429 tempo 120bpm30 marker "B"31 }32 at 4bars + 2/1 {33 tempo 60bpm ramp 1/134 marker "Ritardando"35 }3637 instrument marimba: Marimba {38 gain -6dB39 repeat 2 {40 seven(A3)41 seven(Bb3)42 }43 // The cursor is now at bar 5, in 4/4.44 for n in [A3, C4, E4, A4, G4, E4, C4, A3] {45 play n duration 1/446 }47 chord [A2, E3, A3] duration 1bar48 effects {49 reverb room(mix: 0.2)50 }51 }5253 instrument drone: BassClarinet {54 gain -10dB55 play A2 duration 4bars velocity 0.556 play A2 duration 3bars velocity 0.657 }58}59