SPB Git

Repository Public

pc_techno.sonata 2.7 KB 101 lines

1// ORIX Sonata2// File: Examples/pc_techno.sonata3// Description: A hypnotic techno loop: a rumbling kick, a one-note acid line whose resonance and cutoff are automated over sixteen bars, a metallic FM hit on a Euclidean rhythm and a filtered noise riser built as a patch.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Pieces9// title: Techno Pattern10// teaches: long automation lanes, acid bass parameters, a noise riser patch, minimal material with evolving timbre11//12// expect: notes 51013// expect: tracks 514// expect: duration 29.0909s15// expect: deterministic16instrument Riser {17    model patch18    release 100ms19    graph {20        node env = adsr(attack: 7s, decay: 0ms, sustain: 1, release: 80ms)21        // The band-pass climbs with the envelope from 300 Hz to about 6 kHz.22        node swept = bandpass(in: noise(), cutoff: 300Hz + env * 5700, q: 3)23        out swept * env * 0.624    }25}2627composition "Techno Pattern" {28    tempo 132bpm29    key F minor3031    instrument kick: SubKick {32        gain -3dB33        repeat 64 {34            play C2 duration 1/435        }36        effects {37            saturation hot(mix: 0.3)38        }39    }4041    instrument hat: ClosedHat {42        gain -15dB43        repeat 64 {44            rest 1/845            play F#2 duration 1/1646            play F#2 duration 1/16 velocity 0.447        }48    }4950    instrument acid: AcidBass {51        gain -10dB52        automate instrument.filter.resonance {53            0bars: 0.354            8bars: 0.955            16bars: 0.556        }57        automate instrument.filter.envelope {58            0bars: 159            12bars: 560            16bars: 261        }62        repeat 16 {63            for i in 0..16 {64                // One pitch, with octave jumps and accents on a fixed mask.65                if i % 16 == 3 or i % 16 == 10 {66                    play F2 duration 1/16 accent67                } else if i % 4 == 2 {68                    play F1 duration 1/16 staccato velocity 0.969                } else {70                    play F1 duration 1/16 velocity 0.671                }72            }73        }74        effects {75            distortion warm(mix: 0.4)76            delay(time: note_value(3/16), feedback: 0.3, mix: 0.15)77        }78    }7980    instrument metal: FMBell {81        gain -16dB82        pan 0.383        rest 4bars84        repeat 12 {85            rhythm(C5, rotate(euclid(5, 16), 3), step: 1/16, vel: 0.6)86        }87        effects {88            reverb plate(mix: 0.3)89        }90    }9192    instrument riser: Riser {93        gain -10dB94        // One long note that rises into bar 9, and again into the end.95        rest 4bars96        play C4 duration 4bars97        rest 4bars98        play C4 duration 4bars99    }100}101
Files main
Menu

Theme