mirror of
https://github.com/kennethreitz/interpretations.git
synced 2026-06-05 23:00:19 +00:00
Chakra: use real singing_bowl_synth from pytheory 0.40.1
Replaced FM bell approximation with singing_bowl_strike_synth. Fixed Tone.from_hz → Tone.from_frequency. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-5
@@ -25,7 +25,7 @@ score = Score("4/4", bpm=60, temperament="just")
|
||||
# Helper: find the nearest tone to a frequency
|
||||
def chakra_tone(hz):
|
||||
"""Create a tone near the target chakra frequency."""
|
||||
return Tone.from_hz(hz)
|
||||
return Tone.from_frequency(hz)
|
||||
|
||||
# Chakra frequencies
|
||||
ROOT_HZ = 396
|
||||
@@ -98,10 +98,9 @@ for _ in range(2):
|
||||
for chord in root_prog:
|
||||
harmonium.add(chord, Duration.WHOLE, velocity=80)
|
||||
|
||||
# ── Singing bowl — FM bell at 396 Hz ───────────────────────────
|
||||
bowl = score.part("bowl", synth="fm", envelope="bell", volume=0.3,
|
||||
reverb=0.9, reverb_type="taj_mahal",
|
||||
fm_ratio=2.0, fm_index=1.5)
|
||||
# ── Singing bowl — real singing bowl synth ──────────────────────
|
||||
bowl = score.part("bowl", instrument="singing_bowl", volume=0.4,
|
||||
reverb=0.9, reverb_type="taj_mahal")
|
||||
|
||||
# Strike every 2 bars — let it ring
|
||||
bowl.add(root_tone, Duration.WHOLE, velocity=90)
|
||||
|
||||
Reference in New Issue
Block a user