Skip to content
🎼 🎶 🎵 🎹 🎻 🎷 🎺 🎸
HTML JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bower_components
demo
src
test
.gitignore gh-pages 用に bower_components を追加 Oct 9, 2017
CNAME CNAME 追加 Oct 9, 2017
LICENSE
README.md
bower.json Polymer 2.1.1 に更新 Oct 2, 2017
index.html
package-lock.json
package.json --open でブラウザを開くようにする Oct 9, 2017
polymer.json Polymer 2.0 に更新 Oct 2, 2017
x-play.html メソッドを private に Oct 7, 2017

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

You can’t perform that action at this time.