August 2017
Intermediate to advanced
288 pages
8h 6m
English
Now that we have set up all the essentials, let's look at the function to define MIDI files:
get_input_songs <- function(path){
files = glob$glob(paste0(path,"/*mid*"))
songs <- list()
count <- 1
for(f in files){
songs[[count]] <- np$array(midi_manipulation_updated$midiToNoteStateMatrix(f))
count <- count+1
}
return(songs)
}
path <- 'Pop_Music_Midi'
input_songs <- get_input_songs(path)
Read now
Unlock full access