In this remix I simplified @papipupepappa's excellent method of calculating the sound length according to current pitch, using the (10^ of ((log of a)*b) method. See inside. Check remix chain for full credits.
Also check out @papipupepappa's excellent project Playback Speed Control, where he did all the hard work (see inside): https://scratch.mit.edu/projects/525403966 In that project "playback speed = 10^(0.0025047225883680674*pitch)" could replace the "get playback speed" custom block.