scaleTuning function

int scaleTuning(
  1. int sampleRate,
  2. int tuning
)

Implementation

int scaleTuning(int sampleRate, int tuning)
{
    return (sampleRate / 44100 * tuning).round().toInt();
}