项目作者: tmpmachine

项目描述 :
Responsive lyric and chord wrapper.
高级语言: JavaScript
项目地址: git://github.com/tmpmachine/chordy.js.git
创建时间: 2020-08-28T13:09:07Z
项目社区:https://github.com/tmpmachine/chordy.js

开源协议:

下载


chordy.js

Responsive lyric and chord wrapper.

Demo

https://bukupujian2.blogspot.com/2021/10/echo.html

Basic Usage

  • Wrap lyric and chord inside a container.
  • Call chordy.init().
  1. <div id="song">Learning How to Die
  2. Jon Foreman
  3. Key : D
  4. CHORUS
  5. D
  6. All along
  7. G Em
  8. Thought I was learning how to take
  9. A7 D
  10. How to bend not how to break
  11. G Em
  12. How to live not how to cry
  13. Em A7 C
  14. But really I've been learning how to die
  15. G D G
  16. I've been learning how to die"</div>
  17. <script src="path/to/chordy.js"></script>
  18. <script>
  19. let container = document.getElementById('song');
  20. chordy.init(container);
  21. </script>

Notes

  1. Song key is classified by Key : pattern.
  2. Highlighted song structure are: VERSE, INTERLUDE, CHORUS, INTRO, ENDING, BRIDGE, PRE-CHORUS, OUTRO, and CODA.
  3. Do not put anything but chord inside a chord line (e.g. Am7 (Walkdown G-F-Em) Gm7).
  4. Any lines that does not classified as key, song structure, and chord are fall under lyric category (not wrapped within a container).
  5. Careful with extra lines and spaces.