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