🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

metronome-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metronome-cli

Play at given bpm or tap for tempo.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Metronome-CLI

The result of playing around with a few features of vorpal, but also a useful cli utility.

Tap for bpm, or set set bpm directly and play them. Can also play arbitrary sine tones.

Installation

npm install -g metronome-cli

Usage

Run metronome to start an immersive session with the following commands:

Tapping space while holding ctrl will set the bpm.

  • start alias play: starts the metronome
  • stop alias end: stops the metronome
  • bpm <bpm>: set or print the current bpm
  • add : add to the current bpm
  • mul <factor> alias multiply <factor>: multiply the current bpm with factor
  • freq <frequency> alias frequency <frequency>: set or print the pitch to use. Accepts written representation of a note, which is parsed using note-parser
  • tone [frequency] [seconds]: play the current or given frequency
  • tapwindow [window]: set or print the integer which specifies how many of the last taps should be used when setting bpm by tapping
  • taptolerance: set or print the factor that determines when tapping stopped when setting bpm by tapping
    • example: when tapping at 60 bpm with tolerance of 0.5, tempo resets if you don't tap for (60sec/60bpm)*((1 + 0.5)bpm) = 1.5 sec, or if you tap to fast (twice in (60sec/60bpm)*((1 - 0.5)bpm) = 0.5 sec)
  • length [seconds]: set or print the length of the metronome ticks

Shortcuts:

  • use ctrl + p to toggle playing
  • use ctrl + arrow_left and ctrl + arrow_right to decrement/increment bpm
  • use alt + arrow_left and alt + arrow_right to decrement/increment bpm by 4
  • writing an integer without any command sets the bpm to that integer

Keywords

cli

FAQs

Package last updated on 15 Oct 2015

Did you know?

Socket

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