You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with data whose chord notations / symbols are in the format mir_eval works with (e.g C:min, C:7, etc). In order to model the transitions between chords, it's more convenient to transpose all the chords to C Major or A minor. This is a step that I have seen mentioned in many papers regarding chord detection / harmonic analysis.
Q: Does mir_eval have any methods to do the same, on the chord notations / symbols in the format it accepts? I know a few python libraries like chords-parser, mingus which work with notation like this (Cm, C7, Cmaj7), however, I would need to translate between the 2 types of notations ( I am able to do it for easier chords). The difference can get a lot more complicated for chords with inversions, augmented chords, suspended chords, etc.
The text was updated successfully, but these errors were encountered:
This operates on chord annotations that would validate against an extended version of Harte's grammar, which is essentially what mir_eval uses for chord parsing. This would cover all the inversion, added/suppressed notes, and extended quality information automatically. It's mainly used to transpose a chord annotation by a fixed number of semitones, which occurs during training of chord models to achieve key invariance.
The one thing it won't do for you is spelling the root note of the chords - it goes through midi numbers for convenience, and converts back assuming C:maj. The implementation above pre-dates our implementation of note spelling in librosa, but it would be easy to add if you need it. OTOH, if you're only ever transposing into C:maj or A:min, it shouldn't be necessary.
I am working with data whose chord notations / symbols are in the format mir_eval works with (e.g C:min, C:7, etc). In order to model the transitions between chords, it's more convenient to transpose all the chords to C Major or A minor. This is a step that I have seen mentioned in many papers regarding chord detection / harmonic analysis.
Q: Does mir_eval have any methods to do the same, on the chord notations / symbols in the format it accepts? I know a few python libraries like chords-parser, mingus which work with notation like this (Cm, C7, Cmaj7), however, I would need to translate between the 2 types of notations ( I am able to do it for easier chords). The difference can get a lot more complicated for chords with inversions, augmented chords, suspended chords, etc.
The text was updated successfully, but these errors were encountered: