Skip to content

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

License

Notifications You must be signed in to change notification settings

bamdadfr/speed-to-semitones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1d0061c · Apr 25, 2022

History

57 Commits
Apr 25, 2022
Feb 2, 2022
Feb 2, 2022
Feb 2, 2022
Feb 2, 2022
Mar 24, 2021
Mar 24, 2021
Feb 2, 2022
Mar 24, 2021
Feb 2, 2022
Feb 2, 2022
Feb 2, 2022
Feb 2, 2022

Repository files navigation

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