SPB Git

Repository Public

ambient_drift.sonata 1.4 KB 55 lines

1// ORIX Sonata2// File: Examples/ambient_drift.sonata3// Description: A slow generative piece: long pad chords, a glass harp choosing notes from a seeded pentatonic walk, convolution reverb and auto-pan.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 429// expect: tracks 310// expect: duration 63.6000s11// expect: deterministic12composition "Ambient Drift" {13    tempo 50bpm14    key Eb lydian15    seed 19771617    bus space {18        effects {19            convolution dark_hall(mix: 100%)20        }21        gain -6dB22    }2324    instrument pad: SynthPad {25        gain -14dB26        send space -3dB27        for c in [chord(Eb3, maj9), chord(Bb2, add9), chord(C3, min9), chord(Ab2, maj7)] {28            chord c duration 2bars velocity 0.529        }30        effects {31            autopan slow_drift(mix: 0.6)32        }33    }3435    instrument glass: GlassHarp {36        gain -10dB37        send space -2dB38        let notes = scale(Eb5, pentatonic_major)39        let index = 240        repeat 20 {41            // A walk of at most one step, kept inside the scale.42            index = clamp(index + random_int(-1, 1), 0, len(notes) - 1)43            play notes[index] duration choose([1/4, 1/2, 1/2]) velocity 0.4 + random() * 0.344            rest choose([0, 1/4, 1/2])45        }46    }4748    instrument low: SubBass {49        gain -12dB50        for n in [Eb1, Bb1, C2, Ab1] {51            play n duration 2bars velocity 0.652        }53    }54}55
Files main
Menu

Theme