diff --git a/docs/_static/audio/synth_accordion.wav b/docs/_static/audio/synth_accordion.wav index 208c739..fd8795a 100644 Binary files a/docs/_static/audio/synth_accordion.wav and b/docs/_static/audio/synth_accordion.wav differ diff --git a/docs/generate_audio.py b/docs/generate_audio.py index 207d1e0..aab69b7 100644 --- a/docs/generate_audio.py +++ b/docs/generate_audio.py @@ -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():