Package Exports
- speed-to-semitones
- speed-to-semitones/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (speed-to-semitones) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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