🎼 🎶 🎵 🎹 🎻 🎷 🎺 🎸
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bower_components
demo
src
test
.gitignore
CNAME
LICENSE
README.md
bower.json
index.html
package-lock.json
package.json
polymer.json
x-play.html

README.md

<x-play>

🎼 🎶 🎵 🎹 🎻 🎷 🎺 🎸

DEMO

x-play

Get Started

% npm start

Examples

Piano 1

<x-play sound="piano" tempo="80" repeat="1" melody="d2 e2 c2 c1 g1"></x-play>

Piano 2

<x-play sound="piano" tempo="200" repeat="2"
  melody="| g3 e3 e3  - | f3 d3 d3  - | c3 d3 e3 f3 | g3 g3 g3  - |
          | g3 e3 e3 e3 | f3 d3 d3 d3 | c3 e3 g3 g3 | e3 e3 e3  - |
          | d3 d3 d3 d3 | d3 e3 f3  - | e3 e3 e3 e3 | e3 f3 g3  - |
          | g3 e3 e3 e3 | f3 d3 d3 d3 | c3 e3 g3 g3 | e3 e3 e3  - |"></x-play>

Drum

<x-play sound="snare" tempo="100" repeat="2" melody="-  c4  - c4  - c4  - c4"></x-play>
<x-play sound="kick"  tempo="100" repeat="2" melody="c4 c4 c4 c4 c4 c4 c4 c4"></x-play>

Props

  • melody (require)
    • scale[octave]
  • sound (default: "piano")
    • "cymbal"
    • "hihat"
    • "kick"
    • "piano"
    • "snare"
    • "tom"
  • tempo (default: "100")
  • repeat (default: "1")

Thanks!

全曲無料・フリー音楽素材/魔王魂

Licence

MIT

Author

hikarock