Accordion demo: waltz chords with held bass

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 16:29:08 -04:00
parent 383802a1e1
commit 6d137be9f5
2 changed files with 12 additions and 3 deletions
Binary file not shown.
+12 -3
View File
@@ -625,10 +625,19 @@ def gen_synth_steel_drum():
render("synth_steel_drum", score)
def gen_synth_accordion():
score = Score("4/4", bpm=100)
score = Score("4/4", bpm=110)
p = score.part("demo", instrument="accordion", volume=0.5, reverb=0.2)
for n in ["C4", "E4", "G4", "C5", "G4", "E4", "C4", "E4"]:
p.add(n, Duration.QUARTER, velocity=85)
# Waltz feel with held chords
p.hold("C3", Duration.WHOLE, velocity=65)
p.hold("E3", Duration.WHOLE, velocity=60)
p.hold("G3", Duration.WHOLE, velocity=60)
for n in ["E4", "G4", "C5", "G4"]:
p.add(n, Duration.QUARTER, velocity=78)
p.hold("F3", Duration.WHOLE, velocity=65)
p.hold("A3", Duration.WHOLE, velocity=60)
p.hold("C4", Duration.WHOLE, velocity=60)
for n in ["A4", "C5", "F5", "C5"]:
p.add(n, Duration.QUARTER, velocity=78)
render("synth_accordion", score)
def gen_synth_didgeridoo():