public void Invalidate() { float majorInterval = majorUD.val + majorDistort.Value; if (majorNegate.val) { majorInterval = -majorInterval; } float minorInterval = minorUD.val + minorDistort.Value; if (minorNegate.val) { minorInterval = -minorInterval; } float fifthInterval = majorInterval - minorInterval; float halfInterval = majorInterval + minorInterval; fifth.text = Theory.IntervalName(fifthInterval) + "(" + fifthInterval.ToString("+0;-0;") + ")"; major.text = Theory.IntervalName(majorInterval) + "(" + majorInterval.ToString("+0;-0;") + ")"; minor.text = Theory.IntervalName(minorInterval) + "(" + minorInterval.ToString("+0;-0;") + ")"; half.text = Theory.IntervalName(halfInterval) + "(" + halfInterval.ToString("+0;-0;") + ")"; }