Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Useful information. :) Thanks!
I can see a lot of thought went into this. Hence my question...
Why all the comments? Why not just use descriptive variable names? The code would be much more readable.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Melodic and harmonic intervals are named for the distance from one letter name to the other letter name, first and last note inclusive
('A0', 'A0') => 1 (unison)
('A0', 'B0') => 2 (second)
This is standard convention for musicians. The ordinal number is then paired with a modifier such as 'major', 'minor', 'perfect', etc... but that is beyond the scope of this kata
Wut
Thank you.
Hi! The unit is neither tones nor semitones, but rather letter note names. This is the standard way to refer to melodic and harmonic intervals in every music theory class I have taken.
C to a E has four semitones (or two whole tones), and is called a 3rd, specifically a major third, because it comprehends three note names.
E to G has three semitones, or 1.5 whole tones, but is also called a 3rd, specifically a minor third, because it also comprehends three note names.
I've added a note in the description to emphasize this concept; hopefully it will be helpful.
Thanks! I've made various changes in response to the issues noted in discourse here. Would you update the translation so I can approve and resolve?
Thanks for your (rather pointed 😅) feedback. I've updated the kata to accept exactly two arguments. Unfortunately this has invalidated all previous solutions, but I guess that is part of the beta process.
From a quick scan of the internet, it seems most authors who use the term "Pitch Interval" are referring to an interval measured in semitones, whereas here I am referring to the interval size measured across note letter names (typically stated as an ordinal number such as 3rd or 4th), which is generally paired with an interval quality (such as major or perfect).
I understand you want to differentiate between rhythm intervals and pitch intervals. How about "Find the Letter Note Interval Between Two Notes"? Or "Find the Melodic Interval Between Two Notes"?
Got it; fixed. 👍🏼
Resolved. 👍🏼
Loading more items...