Code Monkey home page Code Monkey logo

metronome-cli's Introduction

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
  • meter <meter>: set or print the meter, the first tone of a meter is played higher
  • freq <frequency> alias frequency <frequency>: set or print the pitch to use
  • 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

metronome-cli's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.