User:Iii kaisei iii/31edo sound code: Difference between revisions
Created page with "This code generates a synthesized sound whose harmonic series is rounded to the nearest steps of 31edo. <syntaxhighlight lang=python> # Synthesizing a timbre for 31edo import numpy as np import soundfile as sf import matplotlib.pyplot as plt sample_rate = 48_000 duration = 3.0 base_frequency = 440.0 k = 0.4 t = np.arange(int(sample_rate * duration)) / sample_rate # Positions of the first 13 harmonics, rounded to the nearest 31edo steps steps = [0, 31, 49, 62, 72, 80..." |
No edit summary |
||
| Line 6: | Line 6: | ||
import numpy as np | import numpy as np | ||
import soundfile as sf | import soundfile as sf | ||
sample_rate = 48_000 | sample_rate = 48_000 | ||