SPB Git

Repository Public

pc_house_groove.sonata 2.5 KB 106 lines

1// ORIX Sonata2// File: Examples/pc_house_groove.sonata3// Description: A four-on-the-floor house loop: kick, offbeat open hats, clap on two and four, a rolling sub bass and stabbed minor-ninth chords that pump against the kick through a filter sweep.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Pieces9// title: House Groove10// teaches: drum programming with loops, offbeats, automation of a synth filter, buses11//12// expect: notes 38413// expect: tracks 614// expect: duration 30.9677s15// expect: deterministic16composition "House Groove" {17    tempo 124bpm18    key A minor1920    bus drums {21        effects {22            compressor glue23        }24        gain -2dB25    }2627    instrument kick: Kick {28        output drums29        gain -2dB30        repeat 32 {31            play C2 duration 1/432        }33    }3435    instrument clap: ElectroSnare {36        output drums37        gain -9dB38        repeat 16 {39            rest 1/440            play D2 duration 1/441        }42        effects {43            reverb room(mix: 0.2)44        }45    }4647    instrument hat: OpenHat {48        output drums49        gain -15dB50        pan 0.251        repeat 32 {52            rest 1/853            play A#2 duration 1/8 staccato54        }55    }5657    instrument shaker: ClosedHat {58        output drums59        gain -18dB60        pan -0.361        rest 2bars62        repeat 6 {63            for i in 0..16 {64                play F#2 duration 1/16 velocity if i % 4 == 2 then 0.8 else 0.465            }66        }67    }6869    instrument bass: SubBass {70        gain -8dB71        repeat 4 {72            for root in [A1, A1, F1, G1] {73                rest 1/874                play root duration 1/875                rest 1/1676                play root duration 3/1677                play root + 12st duration 1/8 staccato78                rest 1/879                play root duration 1/480            }81        }82    }8384    instrument stabs: SynthKeys {85        gain -11dB86        // The filter opens over the eight bars.87        automate instrument.filter.cutoff {88            0bars: 400Hz89            8bars: 7000Hz exp90        }91        repeat 4 {92            for c in [chord(A3, min9), chord(A3, min9), chord(F3, maj7), chord(G3, add9)] {93                rest 1/894                chord c duration 1/8 staccato95                rest 1/496                rest 1/1697                chord c duration 3/16 staccato98                rest 1/499            }100        }101        effects {102            delay echo(time: note_value(3/16), feedback: 0.3, mix: 0.2)103        }104    }105}106
Files main
Menu

Theme