Ad
  • Default User Avatar

    @vivekpontoosh: in terms of Bb, there is no suspended 4th in this case. The 3rd of a Bb chord would be some kind of D, such as Db for Bb minor or D for Bb major. If there were a 4th for a Bb chord, then we would encounter an Eb in the chord. Simply put, Bb G D reesults in a 1st inversion G minor chord.

  • Default User Avatar

    A# is enharmonic (equivalent) to B-flat major.
    (A# isn't used much because of all of the accidentals and double-sharps)
    A# is an artifact from using the midi tables.

    And if you look at this in Bb terms, it comes out to:
    Bb G D, which is a raised 3rd (of 4th, or suspended)
    which isn't a major triad

    The major triad would be: Bb F D

  • Default User Avatar

    I found this diagram more useful than the MIDI article mentioned.
    https://djip.co/blog/logic-studio-9-midi-note-numbers
    It was more compact.

    I haven't checked all of the test cases, but it seems like there should be an augmented triad, and a diminished triad, to round out the possibilities. Also a suspended chord (R 4 5).
    Also things like R 2 5, etc. Haven't analyzed what's there.

    I think you should limit the kata to triads (including octaves of included notes), but not bigger chords. How would dominant 7 chord be classified, with major triad, but minor 7th, vs Major 7th.

    Also, it would be good to summarize this part of music theory, rather than just pointing to a wikipedia page. I had a really good guitar teacher in highschool that explained this to me, but most people won't have that background.

  • Default User Avatar

    broken random tests. exemples
    ([[9, 14, 15, -3, -1, -4, 10, 1, 12], [6, 5, 9, -8, -6, 4, 5, -4, 8]], 0) should equal [9, 14, 15, -3, -1, -4, 10, 1, 12]
    ([[1, -5, 3, -7, 1, -8, 7, -2], [-5], [3], [-7], [1], [-8], [7], [-2]], 1) should equal [1, -5, 3, -7, 1, -8, 7, -2]
    ([[11], [2], [5], [4]], 0) should equal [11]

  • Default User Avatar

    2 [[8, -1], [6, -4], [5, 9]]
    [8, -1, 6, -4, 5, 9] should equal [8, -1, 0, 0, 6, -4, 0, 0, 5, 9]
    Is this Kata broken?
    Or can someone explain the shifting such that:

    Shift value: 2
    Input: [[8, -1], [6, -4], [5, 9]]
    Seems like output should be:
    [8, -1, 6, -4, 5, 9] (3 arrays, of 2 elements each, with 2 shifts of 2)
    8, -1,
    6, -4
    5, 9
    which yields 6 elements

    But, answer is:
    [8, -1, 0, 0, 6, -4, 0, 0, 5, 9]
    which is 10 elements, so the author must have a different definition of shift