added tuning functions for creating scales and loading them from Scala scale files, converting pch vectors to frequency