{"action":"opened","issue":{"url":"https://api.github.com/repos/pedrozath/coltrane/issues/12","repository_url":"https://api.github.com/repos/pedrozath/coltrane","labels_url":"https://api.github.com/repos/pedrozath/coltrane/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/pedrozath/coltrane/issues/12/comments","events_url":"https://api.github.com/repos/pedrozath/coltrane/issues/12/events","html_url":"https://github.com/pedrozath/coltrane/issues/12","id":306217359,"number":12,"title":"Coltrane doesn't display enharmonic intervals correctly","user":{"login":"art-of-dom","id":24949495,"avatar_url":"https://avatars3.githubusercontent.com/u/24949495?v=4","gravatar_id":"","url":"https://api.github.com/users/art-of-dom","html_url":"https://github.com/art-of-dom","followers_url":"https://api.github.com/users/art-of-dom/followers","following_url":"https://api.github.com/users/art-of-dom/following{/other_user}","gists_url":"https://api.github.com/users/art-of-dom/gists{/gist_id}","starred_url":"https://api.github.com/users/art-of-dom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/art-of-dom/subscriptions","organizations_url":"https://api.github.com/users/art-of-dom/orgs","repos_url":"https://api.github.com/users/art-of-dom/repos","events_url":"https://api.github.com/users/art-of-dom/events{/privacy}","received_events_url":"https://api.github.com/users/art-of-dom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-18T06:39:50Z","updated_at":"2018-03-18T06:39:50Z","closed_at":null,"author_association":"NONE","body":"Coltrane does not give the correct name when creating an interval that has a more common enharmonic equivalent.  Due to this, Coltrane cannot be used for music theory centric applications.\r\n\r\nThis interval is C to D (or D _down to _ C) and should be a Major Second (Correct)\r\n```\r\n2.5.0 :007 > interval = Coltrane::Note['D'] - Coltrane::Note['C']\r\n => #<Coltrane::IntervalClass:0x000000000142e248 @cents=200> \r\n2.5.0 :008 > interval.name\r\n => \"M2\" \r\n```\r\nThis interval is C to D# (or D# _down to _ C) and should be an Augmented Second (Wrong)\r\n```\r\n2.5.0 :009 > interval = Coltrane::Note['D#'] - Coltrane::Note['C']\r\n => #<Coltrane::IntervalClass:0x00000000013e46c0 @cents=300> \r\n2.5.0 :010 > interval.name\r\n => \"m3\" \r\n```\r\n\r\nThis interval is F to B (or B _down to _ F) and should be an Augmented Fourth (Correct)\r\n```\r\n> 2.5.0 :017 > interval = Coltrane::Note['B'] - Coltrane::Note['F']\r\n>  => #<Coltrane::IntervalClass:0x00000000016d3958 @cents=600> \r\n> 2.5.0 :018 > interval.name\r\n>  => \"A4\" \r\n```\r\n\r\nThis interval is B to F (or F _down to _ B) and should be a diminished fifth (Wrong, it gives and Augmented Fourth)\r\n```\r\n> 2.5.0 :017 > interval = Coltrane::Note['F'] - Coltrane::Note['B']\r\n>  => #<Coltrane::IntervalClass:0x00000000016d3958 @cents=600> \r\n> 2.5.0 :018 > interval.name\r\n>  => \"A4\" \r\n```\r\n\r\nThis interval is B to Fb (or Fb _down to _ B) and should be a doubly diminished fifth (Wrong, it gives a Perfect 4th)\r\n```\r\n2.5.0 :033 > interval = Coltrane::Note['Fb'] - Coltrane::Note['B']\r\n => #<Coltrane::IntervalClass:0x0000000001514810 @cents=500> \r\n2.5.0 :034 > interval.name\r\n => \"P4\" \r\n\r\n```"}}
{"actor":{"display_login":"art-of-dom"}}