Repository Public
1// ORIX Sonata2// File: Examples/acid_line.sonata3// Description: A four-on-the-floor kick, off-beat hats and an acid bass whose filter resonance and tone are automated over eight bars.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// expect: notes 2089// expect: tracks 410// expect: duration 15.0000s11// expect: deterministic12const line = [A1, A1, A2, A1, C2, A1, G2, A1, A1, E2, A1, A2, D2, A1, C2, G1]1314composition "Acid Line" {15 tempo 128bpm16 key A minor17 seed 3031819 bus drums {20 effects {21 compressor drums22 }23 }2425 instrument kick: Kick {26 output drums27 gain -4dB28 repeat 32 {29 play C2 duration 1/4 velocity 0.9530 }31 }3233 instrument hats: ClosedHat {34 output drums35 gain -16dB36 pan 0.237 repeat 32 {38 rest 1/839 play F#2 duration 1/8 velocity 0.5 + random() * 0.240 }41 }4243 instrument clap: ElectroSnare {44 output drums45 gain -10dB46 repeat 16 {47 rest 1/448 play D2 duration 1/4 velocity 0.849 }50 effects {51 reverb room(mix: 0.2)52 }53 }5455 instrument acid: AcidBass {56 gain -10dB57 automate instrument.filter.resonance {58 0bars: 0.559 8bars: 0.960 }61 automate instrument.tone {62 0bars: 0.263 6bars: 0.9 exp64 8bars: 0.465 }66 repeat 8 {67 for i in 0..16 {68 // Accents and slides are decided by the seeded generator: the same every time.69 if random() < 0.25 {70 play line[i] duration 1/16 accent71 } else {72 play line[i] duration 1/16 staccato velocity 0.773 }74 }75 }76 effects {77 distortion warm(mix: 0.5)78 delay(time: note_value(3/16), feedback: 0.35, mix: 0.18)79 }80 }8182 master {83 peak_limit -1dB84 effects {85 eq(low_cut: 30Hz)86 }87 }88}89