diff --git a/docs/_static/audio/synth_timpani.wav b/docs/_static/audio/synth_timpani.wav index 25af1cf..a03fd73 100644 Binary files a/docs/_static/audio/synth_timpani.wav and b/docs/_static/audio/synth_timpani.wav differ diff --git a/docs/generate_audio.py b/docs/generate_audio.py index ee16258..4d6ad4e 100644 --- a/docs/generate_audio.py +++ b/docs/generate_audio.py @@ -580,10 +580,12 @@ def gen_synth_upright_bass(): def gen_synth_timpani(): score = Score("4/4", bpm=80) - p = score.part("demo", synth="timpani_synth", envelope="none", - volume=0.5, reverb=0.25) - for n in ["C2", "E2", "G2", "C3", "G2", "E2", "C2", "C2"]: - p.add(n, Duration.QUARTER, velocity=90) + timp = score.part("timp", synth="timpani_synth", volume=0.5, reverb=0.25) + timp.roll("C3", Duration.WHOLE, velocity_start=20, velocity_end=110) + timp.add("C3", Duration.HALF, velocity=127) + timp.rest(Duration.HALF) + timp.roll("G2", Duration.WHOLE, velocity_start=20, velocity_end=110) + timp.add("G2", Duration.HALF, velocity=127) render("synth_timpani", score) def gen_synth_strings():