SPB Git

Repository Public

pc_minimal_pulse.sonata 2.2 KB 86 lines

1// ORIX Sonata2// File: Examples/pc_minimal_pulse.sonata3// Description: A piece of pulsing chords in the manner of American minimalism: marimbas and electric piano repeat eighth-note chords that swell and fade on different cycle lengths while the harmony moves one note at a time.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Pieces9// title: Pulses10// teaches: automation cycles of different lengths, repeated notes, slow harmonic change, layering11//12// expect: notes 154713// expect: tracks 414// expect: duration 32.7273s15// expect: deterministic16// `bars` bars of eighth-note pulses on one chord.17pattern pulse(notes: Chord, bars: Number) {18    repeat bars * 8 {19        chord notes duration 1/8 staccato20    }21}2223composition "Pulses" {24    tempo 176bpm25    key E minor2627    let chords = [[E3, B3, D4, G4], [E3, A3, D4, G4], [E3, A3, C4, G4], [D3, A3, C4, F#4], [D3, G3, B3, F#4], [E3, G3, B3, E4]]2829    instrument marimba: Marimba {30        gain -8dB31        pan -0.332        // A swell every three bars.33        voice {34            repeat 8 {35                automate gain {36                    0bars: -22dB37                    3/2: -8dB38                    3bars: -22dB39                }40                rest 3bars41            }42        }43        voice {44            for c in chords {45                pulse(c, 4)46            }47        }48    }4950    instrument keys: ElectricPiano {51        gain -10dB52        pan 0.353        // A swell every four bars: the two cycles meet again after twelve.54        voice {55            repeat 6 {56                automate gain {57                    0bars: -24dB58                    2bars: -10dB59                    4bars: -24dB60                }61                rest 4bars62            }63        }64        voice {65            for c in chords {66                pulse(c + 12st, 4)67            }68        }69    }7071    instrument bass: BassClarinet {72        gain -8dB73        for c in chords {74            play c[0] - 12st duration 4bars75        }76    }7778    instrument strings: ConcertStrings {79        gain -14dB80        rest 4bars81        for c in drop(chords, 1) {82            play c[3] + 12st duration 4bars legato83        }84    }85}86
Files main
Menu

Theme