Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

This is the reverse of Music: what's in this chord?Music: what's in this chord?, which is to print the notes in a given chord. This time the input is a list of notes in a chord, and your task is to output which chord it is.

This is the reverse of Music: what's in this chord?, which is to print the notes in a given chord. This time the input is a list of notes in a chord, and your task is to output which chord it is.

This is the reverse of Music: what's in this chord?, which is to print the notes in a given chord. This time the input is a list of notes in a chord, and your task is to output which chord it is.

edited body
Source Link
jimmy23013
  • 37k
  • 6
  • 77
  • 148

Note that Caug is the same as Eaug and G#aug, and Csus4 is the same as Gsus2Fsus2. You can output either one but there is a bonus if you output them all.

Note that Caug is the same as Eaug and G#aug, and Csus4 is the same as Gsus2. You can output either one but there is a bonus if you output them all.

Note that Caug is the same as Eaug and G#aug, and Csus4 is the same as Fsus2. You can output either one but there is a bonus if you output them all.

added 40 characters in body
Source Link
jimmy23013
  • 37k
  • 6
  • 77
  • 148
  • Input: C D# G Output: Cm.
  • Input: C Eb G Output: Cm.
  • Input: C Eb F# Output: Cdim.
  • Input: F A C# Output: Faug, Aaug, C#aug, Dbaug or Faug Aaug C#aug, Faug Aaug Dbaug in any order.
  • Input: F D F F F F A A F Output: Dm.
  • Input: C D Output: C D.
  • Input: C D# G Output: Cm.
  • Input: C Eb G Output: Cm.
  • Input: F A C# Output: Faug, Aaug, C#aug, Dbaug or Faug Aaug C#aug, Faug Aaug Dbaug in any order.
  • Input: F D F F F F A A F Output: Dm.
  • Input: C D Output: C D.
  • Input: C D# G Output: Cm.
  • Input: C Eb G Output: Cm.
  • Input: C Eb F# Output: Cdim.
  • Input: F A C# Output: Faug, Aaug, C#aug, Dbaug or Faug Aaug C#aug, Faug Aaug Dbaug in any order.
  • Input: F D F F F F A A F Output: Dm.
  • Input: C D Output: C D.
added 69 characters in body
Source Link
jimmy23013
  • 37k
  • 6
  • 77
  • 148
Loading
Tweeted twitter.com/#!/StackCodeGolf/status/552913385906798592
Source Link
jimmy23013
  • 37k
  • 6
  • 77
  • 148
Loading