UNPKG

strumming-metronome

Version:

A simple JavaScript metronome for strumming practice.

54 lines (37 loc) 951 B
# Strumming Metronome A simple JavaScript metronome for strumming practice. ![Video Preview](docs/strumming-metronome.gif) ## Features * Adjustable tempo and time signature * Divide beats by 16th notes or triplets * Sound for each selected strum ## Installation ```sh npm install strumming-metronome ``` ## Usage ### Test Package Locally ```sh git clone git@gitlab.com:endtoendpaper/strumming-metronome.git cd strumming-metronome npx serve ``` Then, open your browser and go to: http://localhost:3000/src/strumming-metronome ### Add to Application #### Import and Initialize the Metronome ``` <script type="module"> import createMetronome from "strumming-metronome" </script> ``` #### Add div element with 'metronome-container' Id to HTML ``` <div id="metronome-container"></div> ``` ## Publishing Changes To publish new changes to the npm package: ```sh npm version patch # or minor or major npm login npm publish --access public ```