1.0.9 • Published 4 years ago

dam-metronome v1.0.9

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

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

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago