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
pitch-class-histogram [2021/04/04 12:53]
egor
pitch-class-histogram [2021/04/08 08:57] (aktuell)
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>
 +
 +{{:wiki:pitchclasshisto_matplot.png?600|}}
  • pitch-class-histogram.1617540822.txt.gz
  • Zuletzt geändert: 2021/04/04 12:53
  • von egor