【文件属性】:
文件名称:soundcloud-waveform:soundcloud-like 播放器
文件大小:68KB
文件格式:ZIP
更新时间:2021-06-17 00:35:54
JavaScript
soundcloud-波形
用法
var foo = new Waveformer ( )
foo . init ( {
waveformer : [ /* array of floats */ ] ,
height : 200 ,
width : 800 ,
reflection : 0.3 ,
waveWidth : 2 ,
gutterWidth : 1 ,
container : document . body ,
trackLength : 420
} )
选项是:
浮点waveform阵列
height波形高度以像素为单位
width波形 宽度(以像素为单位)
reflection 0-50% 其中 0.34 = 34%
waveWidth以像素为单位的波宽
gutterWidth之间的gutterWid
【文件预览】:
soundcloud-waveform-master
----.gitignore(27B)
----package.json(404B)
----build()
--------waveformer.js(8KB)
----LICENSE(1KB)
----index.js(10KB)
----README.md(2KB)
----example()
--------dat.gui.js(98KB)
--------example.js(31KB)
--------index.html(241B)
----bundle.js(208KB)