Created parts generator and calculating average amplitude of audio