File:Equal Temperament verses Just Intonation.svg
Contents
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
| DescriptionEqual Temperament verses Just Intonation.svg |
English: Equal temperament versus just Intonation |
| Date | |
| Source | Own work |
| Author | CrambleSquash |
Source:
import numpy as np import matplotlib.pyplot as plt
f = plt.figure(figsize=np.array([9, 1.5]) * 1.1)
ax = f.add_subplot(111)
perfect = [1, 16/ 15, 9/8, 6/5, 5/4, 4/3, 45/32, 3/2, 8/5, 5/3, 9/5, 15/8] perfectn = np.array([1, 16, 9, 6, 5, 4, 45, 3, 8, 5, 9, 15, 2]) perfectd = np.array([1, 15, 8, 5, 4, 3, 32, 2, 5, 3, 5, 8, 1]) perfect = perfectn / perfectd perfecty = [1,] * len(perfect)
equal = 2 ** (np.arange(0, 13) / 12) equaly = [0,] * len(equal)
ax.plot(perfect, perfecty, '-o', label='Just') ax.plot(equal, equaly, '-o', label='Equal')
inset = ax.inset_axes([0.2, -1.1, 0.6, 1])
plt.rcParams['svg.fonttype'] = 'path'
inset.plot(perfect, perfecty, '-o') inset.plot(equal, equaly, '-o')
window = 0.01
xl, xh = (1 - window) * 3 / 2, (1 + window) * 3/ 2 inset.set_xlim(xl * (1 - window / 3), xh * (1 + window / 3))
ax.axvspan(xl, xh, alpha=0.2, ymax=5, color='tab:green', linewidth=0) inset.axvspan(xl, xh, alpha=0.2, ymax=5, color='tab:green', linewidth=0)
yt_off = 0.1
for n, d in zip(perfectn, perfectd):
ax.annotate(f'${n}$' if d == 1 else rf'$\frac{{{n}}}{{{d}}}$', (n / d, 1 + yt_off), xytext=(n / d, 1 + yt_off), va='bottom', ha='center')
for i, v in enumerate(equal):
ax.annotate(f'${i // 12 + 1}$' if v % 1 == 0 else rf'$\sqrt[12]Template:2^{{{i}}}$', (v, 0 + yt_off), xytext=(v, 0 + yt_off), va='bottom', ha='center', fontsize=None if v % 1 == 0 else 8)
for n, d in zip(perfectn, perfectd):
label = rf'${{\frac{{{n}}}{{{d}}}}}{{\fontsizeTemplate:8ptTemplate:3em\selectfont = {n / d:.4f}}}$'
label = rf'$\frac{{{n}}}{{{d}}} = {n / d:.4f}$'
print(label)
inset.annotate(f'${n}$' if d == 1 else label, (n / d, 1 + yt_off), xytext=(n / d, 1 + yt_off), va='bottom', ha='center')
for i, v in enumerate(equal):
inset.annotate(f'${i // 12 + 1}$' if v % 1 == 0 else rf'$\sqrt[12]Template:2^{{{i}}} = {v:.4f}$', (v, 0 + yt_off), xytext=(v, y + yt_off), va='bottom', ha='center', fontsize=None if v % 1 == 0 else 8)
for dax in [ax, inset]:
dax.axis('off')
dax.set_xscale('log')
ax.set_ylim(-0.3, 1.5) inset.set_ylim(-0.3, 1.5)
f.legend(loc=(0.75, 0.13))
plt.savefig('scales.svg', bbox_inches='tight', dpi=600, transparent=True)
Licensing
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
This media file is uncategorized.
Please help improve this media file by adding it to one or more categories, so it may be associated with related media files (how?), and so that it can be more easily found.
Please notify the uploader with {{subst:Please link images|File:Equal Temperament verses Just Intonation.svg}} ~~~~ |
Captions
Items portrayed in this file
depicts
some value
26 July 2026
image/svg+xml
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 17:15, 26 July 2026 | 756 × 275 (53 KB) | wikimediacommons>CrambleSquash | Uploaded own work with UploadWizard |
File usage
There are no pages that use this file.