added scale detection and adding to HarmonyDetector