Repository Public
1// ORIX Sonata2// File: Examples/lofi_keys.sonata3// Description: A lo-fi keyboard loop: felt piano with sixteenth-note swing through tape saturation, a bit crusher and a narrowed stereo image, over a soft kick and brushed snare.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 1579// expect: tracks 410// expect: duration 27.6923s11// expect: deterministic12composition "Lo-fi Keys" {13 tempo 78bpm14 key Db major15 swing 58% of 1/1616 seed 121718 instrument keys: FeltPiano {19 gain -4dB20 repeat 2 {21 for c in [chord(Db3, maj7), chord(Bb2, min7), chord(Gb2, maj7), chord(Ab2, dom7)] {22 chord c duration 3/8 velocity 0.623 play c[2] + 12st duration 1/16 velocity 0.424 play c[3] + 12st duration 1/16 velocity 0.4525 chord invert(c, 1) duration 1/4 velocity 0.526 play c[1] + 12st duration 1/8 velocity 0.427 play c[2] + 12st duration 1/8 velocity 0.3528 }29 }30 chord chord(Db3, maj9) duration 1bar velocity 0.531 effects {32 saturation tape(mix: 0.6)33 bitcrusher(bits: 10, downsample: 3, mix: 0.35)34 eq telephone(mix: 0.25)35 stereo_width(width: 0.6)36 tremolo(rate: 0.7Hz, depth: 0.15)37 }38 }3940 instrument kick: AcousticKick {41 gain -8dB42 repeat 8 {43 play C2 duration 3/844 play C2 duration 1/8 velocity 0.645 rest 1/246 }47 }4849 instrument snare: BrushSnare {50 gain -12dB51 repeat 8 {52 rest 1/453 play D2 duration 1/454 rest 1/455 play D2 duration 3/1656 play D2 duration 1/16 velocity 0.457 }58 }5960 instrument bass: SubBass {61 gain -9dB62 repeat 2 {63 for n in [Db2, Bb1, Gb1, Ab1] {64 play n duration 3/465 play n duration 1/4 velocity 0.666 }67 }68 }69}70