pitch-class-histogram

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte Überarbeitung Beide Seiten der Revision
pitch-class-histogram [2021/04/04 12:53]
egor
pitch-class-histogram [2021/04/08 08:57]
egor
Zeile 25: Zeile 25:
 import matplotlib.pyplot as plt import matplotlib.pyplot as plt
 import numpy as np import numpy as np
 +
 fig, ax = plt.subplots() fig, ax = plt.subplots()
-note = ('c', 'c#', 'd', 'd#', 'e', 'f', 'f#', 'g', 'g#', 'a', 'b', 'h')+note = ('c', 'c#', 'd', 'd#', 'e', 'f', 'f#', 'g', 'g#', 'a', 'a#', 'b')
 x_pos = np.arange(len(note)) x_pos = np.arange(len(note))
 values = (40, 0, 58, 44, 1, 111, 3, 15, 0, 37, 61, 0) values = (40, 0, 58, 44, 1, 111, 3, 15, 0, 37, 61, 0)
Zeile 36: Zeile 37:
 plt.show() plt.show()
 </code> </code>
 +
 +
  • pitch-class-histogram.txt
  • Zuletzt geändert: 2021/04/08 08:57
  • von egor