jsfx简单的生成声效示例代码

代码语言:html

所属分类:多媒体

代码描述:jsfx简单的生成声效示例代码

代码标签: 生成 声效 示例

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />

</head>

<body>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jsfx.js"></script>
    <script>
        var library = {
        	"select": {"Volume":{"Sustain":0.1,"Decay":0.15,"Punch":0.55}},
        	"long": {"Volume":{"Sustain":0.1,"Decay":0.5,"Punch":1}}
        };
        var sfx = jsfx.Sounds(library);
    </script>
    <button onclick="sfx.select().........完整代码请登录后点击上方下载按钮下载查看

网友评论0