dam-metronome
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Dog Ate My

dam-metronome

dam-metronome is a custom element that was made with StencilJS and web audio api.

Demo

Click here to see the metronome in action

Installation

You can use the dam-metronome by either

npm i dam-metronome

or by including it in your html with script tag

 <script nomodule src="https://unpkg.com/dam-metronome/dist/dam-metronome/dam-metronome.js"></script> 
 <script type="module" src="https://unpkg.com/dam-metronome/dist/dam-metronome/dam-metronome.esm.js"></script> 

Usage

<dam-metronome></dam-metronome>

or

<dam-metronome src="./assets/click.wav"></dam-metronome>

If you'd like to change the colors of the component you can use css variables:

:root {
    --metronome-color-1: YOUR_COLOR; /* This will affect the whole component */
    --metronome-color-2: YOUR_COLOR; /* This will affect the inside of the metronome controllers */
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License

Package Sidebar

Install

npm i dam-metronome

Weekly Downloads

53

Version

1.0.9

License

MIT

Unpacked Size

841 kB

Total Files

83

Last publish

Collaborators

  • alexbartfeld