SPB Git

Repository Public

rh_hemiola.sonata 1.8 KB 64 lines

1// ORIX Sonata2// File: Examples/rh_hemiola.sonata3// Description: Two bars of 3/4 heard as three bars of 2/4: the strings keep the waltz while the woodblock and the melody regroup the same six beats in twos.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Rhythm9// title: Hemiola10// teaches: 3/4 signature, grouping against the bar, accents11//12// expect: notes 9413// expect: tracks 314// expect: duration 9.4737s15// expect: deterministic16composition "Hemiola" {17    tempo 152bpm18    signature 3/419    key G major2021    instrument strings: ConcertStrings {22        gain -8dB23        for c in [chord(G3, major), chord(C3, major), chord(D3, major), chord(G3, major)] {24            repeat 2 {25                play c[0] - 12st duration 1/4 staccato26                chord c duration 1/4 staccato velocity 0.527                chord c duration 1/4 staccato velocity 0.528            }29        }30    }3132    instrument block: Woodblock {33        gain -10dB34        pan 0.435        // Bars 1-2 in three, bars 3-4 in two, and again.36        repeat 2 {37            repeat 2 {38                play C5 duration 1/4 accent39                play C5 duration 1/4 velocity 0.440                play C5 duration 1/4 velocity 0.441            }42            repeat 3 {43                play C5 duration 1/4 accent44                play C5 duration 1/4 velocity 0.445            }46        }47    }4849    instrument oboe: Clarinet {50        gain -6dB51        pan -0.352        repeat 2 {53            play B4 duration 1/254            play D5 duration 1/455            play C5 duration 1/256            play E5 duration 1/457            // The hemiola: three half notes across two bars.58            play F#5 duration 1/2 accent59            play E5 duration 1/2 accent60            play D5 duration 1/2 accent61        }62    }63}64
Files main
Menu

Theme