Skip to content

hikarock/x-play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8ce058b · Oct 9, 2017

History

33 Commits
Oct 9, 2017
Oct 9, 2017
Oct 7, 2017
Oct 2, 2017
Oct 9, 2017
Oct 9, 2017
Oct 7, 2017
Oct 9, 2017
Oct 2, 2017
Oct 2, 2017
Oct 7, 2017
Oct 9, 2017
Oct 2, 2017
Oct 7, 2017

Repository files navigation

<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