sampleRate function

Calculate the sample rate for a note or period value