<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.xen.wiki/index.php?action=history&amp;feed=atom&amp;title=User%3AIii_kaisei_iii%2F31edo_sound_code</id>
	<title>User:Iii kaisei iii/31edo sound code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.xen.wiki/index.php?action=history&amp;feed=atom&amp;title=User%3AIii_kaisei_iii%2F31edo_sound_code"/>
	<link rel="alternate" type="text/html" href="https://en.xen.wiki/index.php?title=User:Iii_kaisei_iii/31edo_sound_code&amp;action=history"/>
	<updated>2026-08-13T03:16:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://en.xen.wiki/index.php?title=User:Iii_kaisei_iii/31edo_sound_code&amp;diff=234827&amp;oldid=prev</id>
		<title>Iii kaisei iii at 11:58, 28 July 2026</title>
		<link rel="alternate" type="text/html" href="https://en.xen.wiki/index.php?title=User:Iii_kaisei_iii/31edo_sound_code&amp;diff=234827&amp;oldid=prev"/>
		<updated>2026-07-28T11:58:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:58, 28 July 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import numpy as np&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import numpy as np&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import soundfile as sf&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import soundfile as sf&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;import matplotlib.pyplot as plt&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sample_rate = 48_000&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sample_rate = 48_000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Iii kaisei iii</name></author>
	</entry>
	<entry>
		<id>https://en.xen.wiki/index.php?title=User:Iii_kaisei_iii/31edo_sound_code&amp;diff=234706&amp;oldid=prev</id>
		<title>Iii kaisei iii: Created page with &quot;This code generates a synthesized sound whose harmonic series is rounded to the nearest steps of 31edo.  &lt;syntaxhighlight lang=python&gt; # 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...&quot;</title>
		<link rel="alternate" type="text/html" href="https://en.xen.wiki/index.php?title=User:Iii_kaisei_iii/31edo_sound_code&amp;diff=234706&amp;oldid=prev"/>
		<updated>2026-07-27T12:01:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This code generates a synthesized sound whose harmonic series is rounded to the nearest steps of 31edo.  &amp;lt;syntaxhighlight lang=python&amp;gt; # 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...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This code generates a synthesized sound whose harmonic series is rounded to the nearest steps of 31edo.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
# Synthesizing a timbre for 31edo&lt;br /&gt;
&lt;br /&gt;
import numpy as np&lt;br /&gt;
import soundfile as sf&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
&lt;br /&gt;
sample_rate = 48_000&lt;br /&gt;
duration = 3.0&lt;br /&gt;
base_frequency = 440.0&lt;br /&gt;
k = 0.4&lt;br /&gt;
&lt;br /&gt;
t = np.arange(int(sample_rate * duration)) / sample_rate&lt;br /&gt;
&lt;br /&gt;
# Positions of the first 13 harmonics, rounded to the nearest 31edo steps&lt;br /&gt;
steps = [0, 31, 49, 62, 72, 80, 87, 93, 98, 103, 107, 111, 115]&lt;br /&gt;
&lt;br /&gt;
# Assign an exponentially decreasing amplitude to each partial&lt;br /&gt;
partials = {}&lt;br /&gt;
&lt;br /&gt;
for i, step in enumerate(steps):&lt;br /&gt;
    amplitude = np.exp(-k * i)&lt;br /&gt;
    partials[step] = amplitude&lt;br /&gt;
&lt;br /&gt;
# Generate the waveform by summing the partials&lt;br /&gt;
wave = np.zeros_like(t)&lt;br /&gt;
&lt;br /&gt;
for step, amplitude in partials.items():&lt;br /&gt;
    frequency = base_frequency * 2 ** (step / 31)&lt;br /&gt;
    wave += amplitude * np.sin(2 * np.pi * frequency * t)&lt;br /&gt;
&lt;br /&gt;
# Apply short fade-in and fade-out ramps to prevent clicks&lt;br /&gt;
fade_length = int(sample_rate * 0.005)&lt;br /&gt;
fade = np.linspace(0, 1, fade_length)&lt;br /&gt;
&lt;br /&gt;
wave[:fade_length] *= fade&lt;br /&gt;
wave[-fade_length:] *= fade[::-1]&lt;br /&gt;
&lt;br /&gt;
# Peak-normalize the waveform and leave a small amount of headroom&lt;br /&gt;
wave /= np.max(np.abs(wave))&lt;br /&gt;
wave *= 0.9&lt;br /&gt;
&lt;br /&gt;
sf.write(&amp;quot;31edo_sound.wav&amp;quot;, wave, sample_rate)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The MIT License (MIT)&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 2026 Kaisei&lt;br /&gt;
&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the &amp;quot;Software&amp;quot;), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:&lt;br /&gt;
&lt;br /&gt;
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.&lt;br /&gt;
&lt;br /&gt;
THE SOFTWARE IS PROVIDED &amp;quot;AS IS&amp;quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.&lt;/div&gt;</summary>
		<author><name>Iii kaisei iii</name></author>
	</entry>
</feed>