少女祈祷中...

一个在博客中播放 MIDI 文件的插件
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.

Github
Github
https://github.com/D-Sketon/hexo-midijs

Install

1
$ npm install hexo-midijs --save

Usage

1
2
{% midijs url [width=85%] [...other args] %}
{% endmidijs %}

url

MIDI 文件的 url (必填)
The url of the MIDI file (required)

width

播放器的宽度 (选填,默认 85%)
The width of the player (optional,default 85%)

other args

其他参数将会附加在插入的 script 标签上。例如,你可以插入 data-pjax 等属性
Other arguments will be attached to the inserted script tag. For example, you can insert attributes such as data-pjax

Example

曲名:上海アリス幻樂団 - スモーキングドラゴン

1
2
{% midijs '/midi/Smoking_Dragon.mid' '80%' %}
{% endmidijs %}
00:00
00:00