speed-to-semitones

Calculate semitones from audio speed

Usage no npm install needed!

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

README

release license maintainability coverage snyk

Convert the audio playback speed to a number of semitones based on the chromatic scale.

Normal playback speed is 1.0, which is a pitch of 0 semitones.

🚀 Use

yarn add speed-to-semitones

âš¡ Example

import speedToSemitones from 'speed-to-semitones'

const double = speedToSemitones(2) // returns the string 12
const moreDigits = speedToSemitones(2, 3) // returns the string 12.000