An open API service indexing awesome lists of open source software.

https://github.com/jpntex/vue-pad

Vue Pad - Sound Pads for Vue JS
https://github.com/jpntex/vue-pad

audio beat beats css drum drumkit music pad plugin sound vue vuejs

Last synced: 18 days ago
JSON representation

Vue Pad - Sound Pads for Vue JS

Awesome Lists containing this project

README

          



Vue Pad

Vue Pad - Sound Pads for Vue JS



Version


License


https://jpntex.github.io/vue-pad/

## Getting Started

Do you want to add to your own projects? There you go:

1. Add this package to your dependencies

```bash
$ npm i vue-pad
# or
$ yarn add vue-pad
```

2. Usage:

```html

import VuePad from 'vue-pad'

export default {
components: {
VuePad
},
data() {
return {
sounds: [{
label: 'Petaculo',
url: require('./sounds/petaculo.mp3'),
volume: 1, // 0 .. 0.5 .. 1
color: '#11e9e2',
shortkey: 'B',
}, {
url: '/beats/snare.wav',
color: 'purple'
}]
}
}
}

```

## FAQ

### What about the touch delay on mobile?

To solve the touch delay in modern web browsers natively:
https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away

And for the old browsers: https://github.com/ftlabs/fastclick

## License

[MIT license](https://github.com/jpntex/vue-pad/blob/master/LICENSE) - jpntex