Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active March 26, 2020 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindpai/64bed14020e108273c95dec625e90f20 to your computer and use it in GitHub Desktop.
Save aravindpai/64bed14020e108273c95dec625e90f20 to your computer and use it in GitHub Desktop.
#importing library
from collections import Counter
#computing frequency of each note
freq = dict(Counter(notes_))
#library for visualiation
import matplotlib.pyplot as plt
#consider only the frequencies
no=[count for _,count in freq.items()]
#set the figure size
plt.figure(figsize=(5,5))
#plot
plt.hist(no)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment