Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array representation #47

Open
meliksahturker opened this issue Aug 12, 2021 · 1 comment
Open

Array representation #47

meliksahturker opened this issue Aug 12, 2021 · 1 comment

Comments

@meliksahturker
Copy link

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.

@AI-Guru
Copy link

AI-Guru commented Sep 13, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants