Repository Public
1// ORIX Sonata2// File: Examples/crystal_harp.sonata3// Description: The CrystalHarp instrument of the mandate (plucked string with a modal body), played in a short arpeggiated piece.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7instrument CrystalHarp {8 model plucked_string9 damping 0.01510 excitation pluck(position: 0.35)11 resonance modal(frequencies: [440Hz, 880Hz, 1320Hz])12 envelope adsr(attack: 5ms, decay: 300ms, sustain: 0.6, release: 2s)13}1415// A darker variant: same string, softer excitation, more damping.16instrument SmokedHarp: CrystalHarp {17 damping 0.0518 brightness 0.319 excitation pluck(position: 0.45, hardness: 0.2)20}2122composition "Crystal Harp" {23 tempo 84bpm24 key A minor25 signature 3/42627 instrument harp: CrystalHarp {28 gain -6dB29 for root in [A3, F3, C4, E3] {30 arpeggio(up_down(chord(root, min7) + 12st), step: 1/8, vel: 0.7)31 }32 chord [A2, E3, A3, C4, E4] duration 3/4 velocity 0.633 effects {34 reverb chamber(mix: 0.3)35 }36 }3738 instrument low: SmokedHarp {39 gain -9dB40 pan -0.241 for root in [A2, F2, C3, E2] {42 play root duration 3/4 velocity 0.6543 }44 play A1 duration 3/4 velocity 0.645 }4647 master {48 peak_limit -1dB49 }50}51