Skip to content

🎼 🎢 🎡 🎹 🎻 🎷 🎺 🎸

License

Notifications You must be signed in to change notification settings

hikarock/x-play

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

About

🎼 🎢 🎡 🎹 🎻 🎷 🎺 🎸

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published