speed-to-percentage

calculate percentage from playback speed

Usage no npm install needed!

<script type="module">
  import speedToPercentage from 'https://cdn.skypack.dev/speed-to-percentage';
</script>

README

release license maintainability coverage snyk

Convert the audio playback speed to percentage.

Normal playback speed is 1, meaning the audio is played at the normal speed.

🚀 Use

yarn add speed-to-percentage

âš¡ Example

import speedToPercentage from 'speed-to-percentage'

const half = speedToPercentage(0.5) // returns the string -50
const moreDigits = speedToPercentage(0.5, 2) // returns the string -50.00