The basic definition of affinity is the consideration of distance whether good or bad higher on the Tone Scale

What is the correctly punctuated version of this sentence?
The basic definition of affinity is the consideration of distance, whether good or bad. higher on the Tone Scale.