Created
April 8, 2020 21:27
-
-
Save codingsnap/cd2341d7c5e03ea74804444440a878fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n_vocab = len(set(notes)) | |
print("Total notes- ", len(notes)) | |
print("Unique notes- ", n_vocab) | |
#output: Total notes- 60498 | |
# Unique notes- 359 | |
print(notes[100:200]) | |
Output: | |
['1+5+9', 'G#2', '1+5+9', '1+5+9', 'F3', 'F2', 'F2', 'F2', 'F2', | |
'F2', '4+9', 'E5', '4+9', 'C5', '4+9', 'A5', '4+9', '5+9', 'F5', | |
'5+9', 'C5', '5+9', 'A5', '5+9', '4+9', 'E5', '4+9', 'C5', '4+9', | |
'A5', '4+9', 'F5', '5+9', 'C5', '5+9', 'E5', '5+9', 'D5', '5+9', | |
'E5', '4+9', 'E-5', '4+9', 'B5', '4+9', '4+9', 'A5', '5+9', '5+9', | |
'5+9', '5+9', '4+9', '4+9', '4+9', '4+9', '5+9', '5+9', '5+9', | |
'5+9', 'B4', '4+9', 'A4', '4+9', 'E5', '4+9', '4+9', 'E-5', '5+9', | |
'5+9', '5+9', '5+9', '4+9', '4+9', '4+9', '4+9', '5+9', '5+9', '5+9', | |
'5+9', 'E5', '4', 'E-5', 'C6', 'E5', '5', 'E-5', 'B5', 'E5', '6', | |
'E-5', 'C6', 'A5', '5', 'A4', '4', 'C5', 'E5', 'F5', 'E5', '5'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment