Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Last active March 26, 2020 20:17
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/e430eb4068a25dd680c99d837dbc28e6 to your computer and use it in GitHub Desktop.
Save aravindpai/e430eb4068a25dd680c99d837dbc28e6 to your computer and use it in GitHub Desktop.
#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