2.2.2 • Published 3 years ago

@lokua/cli v2.2.2

Weekly downloads
8
License
MIT
Repository
-
Last release
3 years ago

@lokua/cli

A cli of utilities I use for creative (usually musical) purposes. This project was made first and foremost for my own needs, but the programs provided are pretty generic so I've made it public.

Help

cli [command]

Commands:
  cli gcd [numbers..]      find greatest common denominator
  cli lcm [numbers..]      find least common multiple
  cli mtof <midiNote>      convert midi note to frequency
  cli ftom <frequency>     convert frequency to midi note
  cli midi                 print table of midi with various conversions
  cli bpm <bpm>            print table of note values in hz and ms for a given t
                           empo
  cli randomName           generate a random <adjective> <noun>
  cli listScales           list scales
  cli scaleNames           list scale names
  cli scale <root> <name>  see scaleNames command for list of names
  cli ringMod <f0> <f1>    view various analysis of ring modulation

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Install

I've used node.js v14 for this. This will not work with any version of node that doesn't support es modules.

npm i -g @lokua/cli

This will add a global cli command. If you don't want to use cli as the name you can clone the repo and call it whatever you want under package.json "bin" field, then run sudo npm link (because meh) in the project root to make it available globally or run commands as npm start <cmd> [...options] instead.

License MIT