Still , the clarinet in B-flat is often used for music in D major . Even so , the clarinet in B-flat is still often used for music in D major , and is perhaps the sharpest key that is practical for the instrument .