# h5piano **Repository Path**: mtgoc/h5piano ## Basic Information - **Project Name**: h5piano - **Description**: 纯js 键盘钢琴,开箱下载点音乐素材就可以浏览器弹奏 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-23 - **Last Updated**: 2021-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: piano ## README How to use: - create a folder `soundfont` - Downlaod SoundFont instrument materials from https://github.com/gleitz/midi-js-soundfonts (x-mp3.js and x-ogg.js files, e.g. https://github.com/gleitz/midi-js-soundfonts/tree/gh-pages/MusyngKite/ `acoustic_grand_piano-mp3.js` and `acoustic_grand_piano-ogg.js`) into `soundfont` - search for word `acoustic_grand_piano` in `piano.js` and change it to the right instrument name that you downloaded - open `piano.html` and enjoy your play! ``` - 创建一个 `soundfont` 子目录 - 从 https://github.com/gleitz/midi-js-soundfonts 下载乐器基本音的js素材文件放入 `soundfont` - 修改 `piano.js` 将乐器基本音的js文件名改对,默认是 `acoustic_grand_piano` - 打开 `piano.html` 就可以弹奏了 ``` ``` example: + piano |--- + soundfont | |--- acoustic_grand_piano-mp3.js | |--- acoustic_grand_piano-ogg.js |--- piano.html |--- piano.js ```