Socket
Socket
Sign inDemoInstall

ftom

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ftom

convert frequency to corresponding MIDI note number


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
3.11 kB
Created
Weekly downloads
 

Readme

Source

ftom

Convert frequency to corresponding MIDI note number. Based on Max's ftom

installation

$ npm install --save ftom

usage

ftom(frequency, concertPitch = 440)

Convert frequency to MIDI note number. Second parameter sets concert pitch, defaulting to A = 440 Hz.

Does not round result to nearest integer! Consider this a feature!

var ftom = require('ftom');

ftom(440);
// => 69

see also

  • mtof

FAQs

Last updated on 27 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc