diff --git a/docs/_static/audio/legato_glide.wav b/docs/_static/audio/legato_glide.wav new file mode 100644 index 0000000..31e1e66 Binary files /dev/null and b/docs/_static/audio/legato_glide.wav differ diff --git a/docs/generate_audio.py b/docs/generate_audio.py index 3dacba4..f7d9fa5 100644 --- a/docs/generate_audio.py +++ b/docs/generate_audio.py @@ -391,6 +391,19 @@ def gen_jazz_ballad(): # ── Quickstart example ─────────────────────────────────────────────────── +def gen_legato_glide(): + score = Score("4/4", bpm=132) + score.drums("house", repeats=4) + score.set_drum_effects(volume=0.35) + acid = score.part("acid", synth="saw", envelope="pad", volume=0.5, + legato=True, glide=0.04, lowpass=2000, lowpass_q=4.0, + distortion=0.3) + for _ in range(4): + acid.add("C2", 0.25).add("C3", 0.25).add("G2", 0.25).add("C2", 0.25) + acid.add("C2", 0.25).add("Eb2", 0.25).add("G2", 0.25).add("Bb2", 0.25) + render("legato_glide", score) + + def gen_quickstart(): score = Score("4/4", bpm=140) score.drums("bossa nova", repeats=4) @@ -511,6 +524,7 @@ GENERATORS = [ gen_ensemble, gen_strum, gen_swell, + gen_legato_glide, gen_acid_house, gen_dub_reggae, gen_jazz_ballad, diff --git a/docs/guide/sequencing.rst b/docs/guide/sequencing.rst index 85c9099..3df6612 100644 --- a/docs/guide/sequencing.rst +++ b/docs/guide/sequencing.rst @@ -353,6 +353,10 @@ portamento (pitch slides between notes): ) acid.add("C2", 0.25).add("C3", 0.25).add("G2", 0.25).add("C2", 0.25) +.. raw:: html + + + - ``legato``: If True, no envelope retrigger between notes (default False). - ``glide``: Portamento time in seconds (default 0, instant). 0.03--0.05 = quick 303 slide, 0.1--0.2 = slow glide.