Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-sketon/hexo-midijs
A hexo plugin to play midi files by MIDIjs.
https://github.com/d-sketon/hexo-midijs
hexo hexo-plugin midi midi-player midijs
Last synced: 9 days ago
JSON representation
A hexo plugin to play midi files by MIDIjs.
- Host: GitHub
- URL: https://github.com/d-sketon/hexo-midijs
- Owner: D-Sketon
- License: mit
- Created: 2022-07-23T03:03:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T12:36:31.000Z (about 1 month ago)
- Last Synced: 2024-10-26T19:51:16.116Z (10 days ago)
- Topics: hexo, hexo-plugin, midi, midi-player, midijs
- Language: JavaScript
- Homepage: https://d-sketon.github.io/20241006/hexo-midijs-demo/
- Size: 17 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hexo-minecraft-skin-viewer
A hexo plugin to play MIDI files by MIDIjs.
About midijs http://www.midijs.net/
Since midijs cannot play multiple MIDI files at the same time, hexo-midijs may not be stable enough.
## Install
```bash
$ npm install hexo-midijs --save
```## Usage
```
{% midijs url [width=85%] [...other args] %}
{% endmidijs %}
```e.g.
```
{% midijs './Smoking Dragon.mid' '400px' %}
{% endmidijs %}
```### url
The url of the MIDI file (required)
### width
The width of the player (optional,default 85%)
### other args
Other arguments will be attached to the inserted `script` tag. For example, you can insert attributes such as `data-pjax`
## Example
[Demo](https://d-sketon.github.io/20241006/hexo-midijs-demo/)