Banjo demo: strum + bluegrass picking lick

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 16:31:22 -04:00
parent 58286ddb69
commit fa6a3090cb
2 changed files with 8 additions and 3 deletions
Binary file not shown.
+8 -3
View File
@@ -661,11 +661,16 @@ def gen_synth_bagpipe():
def gen_synth_banjo():
from pytheory import Fretboard
score = Score("4/4", bpm=120)
score = Score("4/4", bpm=130)
p = score.part("demo", instrument="banjo", volume=0.5, reverb=0.15,
fretboard=Fretboard.guitar())
for ch in ["G", "C", "D", "G"]:
p.strum(ch, Duration.WHOLE, velocity=80)
# Strum into a picking lick
p.strum("G", Duration.WHOLE, velocity=80)
p.strum("C", Duration.WHOLE, velocity=78)
# Bluegrass lick
for n in ["G4", "B4", "D5", "G5", "D5", "B4", "A4", "G4",
"D4", "G4", "B4", "D5", "B4", "G4", "D4", "G4"]:
p.add(n, Duration.EIGHTH, velocity=82)
render("synth_banjo", score)
def gen_synth_mandolin():