Last active
March 26, 2020 20:17
-
-
Save aravindpai/e430eb4068a25dd680c99d837dbc28e6 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
#for listing down the file names | |
import os | |
#Array Processing | |
import numpy as np | |
#specify the path | |
path='schubert/' | |
#read all the filenames | |
files=[i for i in os.listdir(path) if i.endswith(".mid")] | |
#reading each midi file | |
notes_array = np.array([read_midi(path+i) for i in files]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment