Beta
Playing chords on guitar
Loading description...
Combinatorics
Mathematics
Tutorials
Logic
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I'm planning to make a JS translation of this interesting kata. The random tests generator looks a bit scary though to mimic. Do you want more or less the same random tests generator for each language?
It isn't important to use the same test generator, but:
Random tests sometimes generate notes outside the specified range, such as
G♯0
.Fixed octave range in description.
It seems that there are additional requirements on the finger distance between the barre and other fingers that are not mentioned (e.g Why is
11 2 9 2 - 2
invalid? It playsD♯3 B2 B3 A3 - F♯4
, with barre at2
all the way,9
+11
with two fingers)Similarly,
7 6 7 4 7 -
looks doable (PlaysB2 D♯3 A3 B3 F♯4 -
, barre at4
,6
+7
+7
+7
with the 4 remaining fingers)Back to the first example: what stops one from playing
2 4 0 3 1 5
with barre at1
?Or just using 5 fingers together? since
and the open string can be ignored.
And what's stopping
1 - 3 3 3 3
from barre at1
pressed across the whole board and pressing3
with the remaining fingers?11 2 9 2 - 2
: requires fingers on fret 2, 9 and 11 (distance9-2=7
,11-2=9
), but maximum distance is 2, 3 or 4 (see table in section "Fingers".From description: The guitarist can use at most 4 fingers. If the first finger is used for barre, there are 3 fingers remaining.
That sentence is immediately followed by "the thumb is under the neck of guitar". I don't think it'd be unreasonable to assume that the "4 fingers" there are talking about the other 4 fingers outside of the thumb.
Never mind, I re-read the description yet again and it was the 4 fingers all along, the thumb was not involved in the whole deal at all.
Some tags you may want to add:
Done.
This kata doesn't handle octaves of notes with a 'directed pitch class' lower than 0 or higher than 11 correctly.
B♯3 is equivalent to C3 not C4.
C3 == 130.81
B3 == 246.94
C4 == 261.63
so, B#3 == C4
I'm not convinced. It depends what an octave is. Can notes having the same pitch be in different octaves? Is B#3 B3 sharpened or is it the B# that we can find in the 3th octave, in which case it's B2 sharpened? For instance, is B##########################3 still part of the 3th octave or is it in a higher octave? I think an octave is a fixed structure between certain pitches. Sharpening B changes the octave of the note.
It doesn't matter. I just notice the description states how to handle such edge cases. It's different than what I'm used to, but it's clear what expected behavior is.
From description:
B#3 is "one semitone above B3" and not "the B# (C) of octave 3".
It's the same convention used in scientific pitch notation.
Multiple fingers can't be on the same string, so is this a distance in frets, regardless of string where the fingers are placed? Also, how do we measure distance, do we go from string to string?
For instance:
I count 4 fingers with distances in between that are valid. 11 (1 finger), 11 -> 9 (1 finger), 9 -> 11 (1 finger), 11 -> 10 (1 finger)
I still don't know much about guitar hand grips, but I managed to pass this kata.
Ok, max distance is 2 (11-9)
3rd-4th finger: 3 (14-11), too much
Why is this allowed, if you state that holes are not allowed in barre? Is an unused string not a hole?
Unused strings are always allowed.
Thre string can't be played open because there is a finger on fret 1, but it isn't mandatory to use that string.
some suggestions
Done.
Already sated in "output" section.
Amazing kata! Thanks for putting this together!