 For instance, using the notes of the C major scale, the diminished fifth B–F can be decomposed into the four adjacent intervals
Using the notes of a chromatic scale, B–F may be also decomposed into the four adjacent intervals
Notice that the latter diminished second is formed by two enharmonically equivalent notes (E and F).On a piano keyboard, these notes are produced by the same key.However, in the above-mentioned naming convention, they are considered different notes, as they are written on different staff positions and have different diatonic functions within music theory.