magenta / note-seq

A serializable note sequence representation and utilities.
Apache License 2.0
217 stars 57 forks source link

How to get chord symbol from chord midi? #74

Open 980202006 opened 1 year ago

980202006 commented 1 year ago

Hi, thanks for your work. I am trying to infer chord names from a chord's midi track. is there any way?

iansimon commented 1 year ago

Depending on what the MIDI track looks like, you can try one of the following two functions:

https://github.com/magenta/note-seq/blob/main/note_seq/sequences_lib.py#L1668 (if the MIDI track consists of block chords) https://github.com/magenta/note-seq/blob/main/note_seq/chord_inference.py#L260 (if the MIDI track consists of notes arranged some other way and you want a reasonable guess at the chords)

-Ian

On Tue, Jun 20, 2023 at 2:53 AM 980202006 @.***> wrote:

Hi, thanks for your work. I am trying to infer chord names from a chord's midi track. is there any way?

— Reply to this email directly, view it on GitHub https://github.com/magenta/note-seq/issues/74, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKMO37UIAD2HSU6NXTDNL3XMFXJPANCNFSM6AAAAAAZNAXVGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

980202006 commented 1 year ago

Thank you!