note-seq icon indicating copy to clipboard operation
note-seq copied to clipboard

Array representation

Open meliksahturker opened this issue 3 years ago • 1 comments

How can I use note-seq to represent and convert polyphonic MIDI file as array/n-dim matrix?

Since monophonic melody can be represented as 1-D array of integers with quantization, I assume polyphonic ones can be represented as n-D array?

My aim is to obtain raw array of notes(integers) and train custom NN other than magenta.

I spent some time on source code and unofficial documentation @wtong98 provided here with no solution.

meliksahturker avatar Aug 12 '21 15:08 meliksahturker

I guess one way would be quantizing the note sequence, which will make the time dimension discrete and then use a custom mapper.

Also, you could check out the PianoRoll class which is part of note_seq.

AI-Guru avatar Sep 13 '21 12:09 AI-Guru