SPB Git

Repository Public

ha_beating_drone.sonata 1.3 KB 41 lines

1// ORIX Sonata2// File: Examples/ha_beating_drone.sonata3// Description: Two bowed strings start in unison; one drifts a few cents sharp and the beating between them speeds up from one to eight per second, then a pure fifth and a just major third settle the drone.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Harmony9// title: Beating Drone10// teaches: cents offsets, bend curves, deriving an instrument, long notes11//12// expect: notes 413// expect: tracks 214// expect: duration 48.0000s15// expect: deterministic16// The cello without vibrato, so the only beating is the one between the two instruments.17instrument StillCello: Cello {18    vibrato.depth 0st19}2021composition "Beating Drone" {22    tempo 60bpm2324    instrument fixed: StillCello {25        gain -8dB26        pan -0.327        play A2 duration 8bars tie28        play A2 duration 4bars29    }3031    instrument drifting: StillCello {32        gain -8dB33        pan 0.334        // 110 Hz + 15.7 cents is about 111 Hz: one beat per second. 121 cents is about 8 Hz apart.35        play A2 duration 8bars bend { 0s: 0cents, 4s: 0cents, 12s: 15.7cents, 20s: 61cents, 28s: 121cents, 32s: 0cents }36        // A just fifth (701.96 cents) and then a just major third (386.31 cents) above A.37        play A2 + 701.96cents duration 2bars38        play A3 + 386.31cents duration 2bars39    }40}41
Files main
Menu

Theme