SPB Git

Repository Public

in_modal_bodies.sonata 1.8 KB 92 lines

1// ORIX Sonata2// File: Examples/in_modal_bodies.sonata3// Description: The modal percussion engine: marimba, vibraphone, glockenspiel, kalimba, glass and bells play one pentatonic line, then a custom instrument defined by its own list of partials.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Instruments9// title: Struck Bodies10// teaches: modal_percussion bodies, custom partials list, hardness, tremolo on the vibraphone11//12// expect: notes 6613// expect: tracks 714// expect: duration 33.3333s15// expect: deterministic16// Partials of a stretched, bell-like bar: ratios to the fundamental.17instrument MetalBar {18    model modal_percussion19    body bell20    partials [1, 2.4, 3.95, 5.7, 8.3]21    decay 1.622    hardness 0.823    strike.noise 0.224}2526instrument SlowVibes: Vibraphone {27    tremolo.rate 3Hz28    tremolo.depth 0.729    decay 2.530}3132pattern line(base: Pitch) {33    for i in [0, 2, 4, 7, 9, 7, 4, 2] {34        play base + 1st * i duration 1/835    }36    play base + 12st duration 1/237    rest 1/238}3940composition "Struck Bodies" {41    tempo 108bpm42    key C major4344    instrument marimba: Marimba {45        gain -5dB46        line(C3)47    }4849    instrument vibes: SlowVibes {50        gain -7dB51        rest 2bars52        line(C4)53    }5455    instrument glock: Glockenspiel {56        gain -10dB57        rest 4bars58        line(C6)59    }6061    instrument kalimba: Kalimba {62        gain -5dB63        rest 6bars64        line(C4)65    }6667    instrument glass: GlassHarp {68        gain -8dB69        rest 8bars70        line(C5)71    }7273    instrument bells: TubularBells {74        gain -9dB75        rest 10bars76        line(C4)77    }7879    instrument metal: MetalBar {80        gain -8dB81        rest 12bars82        line(C4)83        chord [C3, G3, C4] duration 1/184    }8586    master {87        effects {88            reverb hall(mix: 0.2)89        }90    }91}92
Files main
Menu

Theme