"""A Garden: the harp's fourth piece, for a friend (asked at the Moonwater housewarming, 2026-10-14, for something in the mood of Lonnie Liston Smith's 'A Garden of Peace'). My own melody and changes, not a cover: only the mood is borrowed: slow, modal, a lot of air between notes. E-flat, 4/4 at quarter = 60. A slow two-chord breath (Ebmaj9 to Abmaj9 over an Eb pedal), then a turn through Fm9 and Bb13sus; a pentatonic melody that mostly waits. Intro, A, B (higher), A ending home. ~108 s, cut into <30 s clips like the others. Claude Opus 5.5 (Tessel). local/hear-venv/Scripts/python.exe life/making/harp/harp_piece4.py OUTDIR """ import sys from pathlib import Path HERE = Path(__file__).resolve().parent sys.path.insert(0, str(HERE)) sys.path.insert(0, str(HERE.parent / "music")) import synth as S from pieces import Song import harp_piece CH = {"Ebmaj9": "Eb2 Bb2 G3 D4 F4 Bb4", "Ab/Eb": "Eb2 Ab2 C3 G3 Bb3 Eb4", "Fm9": "F2 C3 Ab3 Eb4 G4 C5", "Bb13sus": "Bb1 F2 Ab2 Eb3 G3 C4"} PROG = ["Ebmaj9", "Ebmaj9", "Ab/Eb", "Ab/Eb", "Fm9", "Bb13sus", "Ebmaj9", "Ebmaj9"] INTRO = 2 SECTIONS = [("A", 2), ("B", 10), ("Aend", 18)] BARS = 27 # durations in eighths (bpb = 8) A = ("G4:6 Bb4:2 C5:8 Bb4:4 G4:2 F4:2 G4:8 " "r:2 Eb5:4 D5:2 C5:6 Bb4:2 G4:4 F4:2 Eb4:2 F4:8") AEND = A.rsplit(" ", 1)[0] + " Eb4:8" B = ("Bb5:6 G5:2 F5:8 Eb5:4 C5:2 Bb4:2 C5:8 " "r:2 D5:2 F5:4 G5:6 F5:2 Eb5:4 C5:4 D5:8") def chord(bar): if bar < INTRO or bar >= BARS - 2: return "Ebmaj9" return PROG[(bar - INTRO) % 8] def piece(): s = Song("A Garden", "E-flat (lydian colour)", 120, bars=BARS, bpb=8, seed=27, tail=5.0, tempo="4/4, quarter 60") s.cfg = {"harp": dict(gain=0, hp=55, hi=5600, send=0.6), "mel": dict(gain=2, hp=170, hi=6800, send=0.6), "sparkle": dict(gain=-10, hp=600, hi=8000, send=0.8)} s.reverb = {"rt60": 4.4, "wet": -6.5, "dark": 0.86} # a slow broken chord per bar: bass, then three notes climbing with space between, one falling back pattern = [(0, 0, 0.62), (1.5, 2, 0.40), (3, 3, 0.36), (4.5, 4, 0.34), (6, 5, 0.30), (7, 3, 0.24)] for bar in range(BARS - 1): notes = CH[chord(bar)].split() for beat, i, v in pattern: s.play("harp", S.pluck, bar, beat, notes[i], 8 if i == 0 else 4, v, pan=(i - 2.5) * 0.12, ring=5.0, bright=0.42) if 10 <= bar < 18 and bar % 2 == 1: # dew on the leaves, over B s.play("sparkle", S.pluck, bar, 5, notes[5], 3, 0.24, pan=0.3 if bar % 4 == 1 else -0.3, ring=3.5, bright=0.7) for name, bar in SECTIONS: ph = {"A": A, "B": B, "Aend": AEND}[name] s.line("mel", S.pluck, bar, ph, 0.58, pan=0.05, ring=4.2, bright=0.6) s.chord("harp", S.pluck, BARS - 1, 0, "Eb2 Bb2 G3 D4 F4 Bb4 D5 G5", 16, 0.52, spread=0.11, ring=6.0, bright=0.46) return s if __name__ == "__main__": harp_piece.piece = piece harp_piece.main(sys.argv[1])