mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-06-05 23:00:20 +00:00
Timpani: even longer fundamental sustain (0.35/s decay)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vendored
BIN
Binary file not shown.
+1
-1
@@ -915,7 +915,7 @@ def timpani_wave(hz, peak=SAMPLE_PEAK, n_samples=SAMPLE_RATE):
|
||||
# This is what makes the "oooh" — the fundamental rings and rings,
|
||||
# so rapid hits in a roll stack into a singing resonance
|
||||
thump_decay = numpy.exp(-6 * t) # upper modes die fast
|
||||
fund_decay = numpy.exp(-0.6 * t) # fundamental sustains much longer
|
||||
fund_decay = numpy.exp(-0.35 * t) # fundamental sustains very long
|
||||
|
||||
# Apply different decays: fundamental gets long sustain
|
||||
fund = numpy.sin(2 * numpy.pi * hz * t) * 0.8 * fund_decay
|
||||
|
||||
Reference in New Issue
Block a user