That is what you have just done:

  1. You measure the gyro deviation;
  2. You multiply the deviation by 20;
  3. Add 1000 to the result;
  4. Set the end result as the sound block frequency rate.

This is another algorithm you have created today! Excellent!

Important: it doesn’t matter whether the gyro deviation is 0, 10 or -1000. This algorithm will work with all unknown values!