SPB Git

Repository Public

in_plucked_family.sonata 1.9 KB 84 lines

1// ORIX Sonata2// File: Examples/in_plucked_family.sonata3// Description: One waveguide string, six instruments: nylon and steel guitar, harp, harpsichord, banjo and dulcimer play the same figure in turn, then a custom string with a soft strike near the middle.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Instruments9// title: Plucked Family10// teaches: std instruments of one engine, excitation slot, damping and brightness, comparing presets11//12// expect: notes 6913// expect: tracks 714// expect: duration 19.2000s15// expect: deterministic16// A felt hammer near the middle of a slack string: dark and round.17instrument SoftKoto {18    model plucked_string19    excitation strike(position: 0.45, hardness: 0.15)20    damping 0.0221    brightness 0.2522    resonance body(mix: 0.4, decay: 300ms)23}2425pattern figure(root: Pitch) {26    for n in [root, root + 7st, root + 12st, root + 16st, root + 12st, root + 7st] {27        play n duration 1/828    }29    chord [root, root + 7st, root + 16st] duration 1/430}3132composition "Plucked Family" {33    tempo 100bpm34    key E minor3536    instrument nylon: NylonGuitar {37        gain -5dB38        figure(E3)39    }4041    instrument steel: SteelGuitar {42        gain -6dB43        rest 1bar44        figure(G3)45    }4647    instrument harp: Harp {48        gain -5dB49        rest 2bars50        figure(A3)51    }5253    instrument harpsichord: Harpsichord {54        gain -8dB55        rest 3bars56        figure(B3)57    }5859    instrument banjo: Banjo {60        gain -7dB61        rest 4bars62        figure(D4)63    }6465    instrument dulcimer: Dulcimer {66        gain -6dB67        rest 5bars68        figure(E4)69    }7071    instrument koto: SoftKoto {72        gain -4dB73        rest 6bars74        figure(E3)75        chord [E2, B2, E3, G3, B3, E4] duration 1/176    }7778    master {79        effects {80            reverb room(mix: 0.15)81        }82    }83}84
Files main
Menu

Theme