dam-metronome
v1.0.9
Published
Dog Ate My Metronome
Downloads
28
Maintainers
Readme
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D