pedrozath / coltrane

🎹🎸A music theory library with a command-line interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: abilty to invert intervals

art-of-dom opened this issue · comments

Coltrane should be able to invert intervals which is a very basic and useful operation for manipulating intervals.

For example, if I created an interval of a Perfect Fifth Coltrane should have a way to invert the original interval to a Perfect Fourth.

This functionality exists:

(-Interval.perfect_fifth).full_name
=> "Perfect Fourth"

I'll add it to the wiki. Thanks for pointing out!

It's actually already on the wiki