Repository Public
1// ORIX Sonata2// File: Examples/gs_round.sonata3// Description: A round: one melody written once as a pattern, sung by three instruments that enter two bars apart.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Getting started9// title: A Round for Three10// teaches: patterns, rest to delay an entry, bars as durations, transpose11//12// expect: notes 9913// expect: tracks 314// expect: duration 24.0000s15// expect: deterministic16pattern tune() {17 for n in [C4, D4, E4, C4] {18 play n duration 1/419 }20 for n in [C4, D4, E4, C4] {21 play n duration 1/422 }23 play E4 duration 1/424 play F4 duration 1/425 play G4 duration 1/226 play E4 duration 1/427 play F4 duration 1/428 play G4 duration 1/229}3031composition "A Round for Three" {32 tempo 120bpm33 key C major3435 instrument first: Flute {36 gain -6dB37 pan -0.438 transpose 12st39 repeat 3 {40 tune()41 }42 }4344 instrument second: Clarinet {45 gain -6dB46 rest 2bars47 repeat 2 {48 tune()49 }50 play C4 duration 1/151 }5253 instrument third: Cello {54 gain -5dB55 pan 0.456 rest 4bars57 transpose -12st58 tune()59 tune()60 }61}62