mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-05 23:00:20 +00:00
Fix acid example, add basic chords audio, regenerate all 34 samples
All audio files: stereo, normalized, no issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
+12
-2
@@ -409,8 +409,8 @@ def gen_legato_glide():
|
||||
score.set_drum_effects(volume=0.35)
|
||||
acid = score.part("acid", synth="saw", volume=0.6,
|
||||
legato=True, glide=0.04,
|
||||
lowpass=1500, lowpass_q=8.0,
|
||||
distortion=0.4, distortion_drive=4.0)
|
||||
lowpass=3000, lowpass_q=6.0,
|
||||
distortion=0.3, distortion_drive=3.0)
|
||||
acid.lfo("lowpass", rate=0.5, min=800, max=4000, bars=4)
|
||||
for _ in range(4):
|
||||
acid.add("C2", 0.25).add("C3", 0.25).add("G2", 0.25).add("C2", 0.25)
|
||||
@@ -443,6 +443,15 @@ def gen_quickstart():
|
||||
|
||||
# ── Sequencing complete example (bossa nova) ─────────────────────────────
|
||||
|
||||
def gen_chords_basic():
|
||||
score = Score("4/4", bpm=120)
|
||||
key = Key("C", "major")
|
||||
chords = key.progression("I", "V", "vi", "IV")
|
||||
for chord in chords:
|
||||
score.add(chord, Duration.WHOLE)
|
||||
render("chords_basic", score)
|
||||
|
||||
|
||||
def gen_complete_rock():
|
||||
score = Score("4/4", bpm=120)
|
||||
score.drums("rock", repeats=8, fill="rock", fill_every=4)
|
||||
@@ -547,6 +556,7 @@ GENERATORS = [
|
||||
gen_dub_reggae,
|
||||
gen_jazz_ballad,
|
||||
gen_quickstart,
|
||||
gen_chords_basic,
|
||||
gen_complete_rock,
|
||||
gen_salsa_layered,
|
||||
gen_playback_basic,
|
||||
|
||||
@@ -161,6 +161,10 @@ Chords work just like tones — pass any ``Chord`` object:
|
||||
for chord in chords:
|
||||
score.add(chord, Duration.WHOLE)
|
||||
|
||||
.. raw:: html
|
||||
|
||||
<audio controls style="width:100%;margin:0.5em 0 1.5em"><source src="../_static/audio/chords_basic.wav" type="audio/wav"></audio>
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> score.measures
|
||||
@@ -353,9 +357,9 @@ portamento (pitch slides between notes):
|
||||
synth="saw",
|
||||
legato=True,
|
||||
glide=0.04,
|
||||
lowpass=1500,
|
||||
lowpass_q=8.0,
|
||||
distortion=0.4,
|
||||
lowpass=3000,
|
||||
lowpass_q=6.0,
|
||||
distortion=0.3,
|
||||
)
|
||||
acid.add("C2", 0.25).add("C3", 0.25).add("G2", 0.25).add("C2", 0.25)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user