马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
习惯潜水.透口气先.也贡献点东东了.
研究了下音符对应的频率值.顺便.做了个"你知道我在等你吗"音乐脚本.虚拟机上测试通过.
音符对应的频率值
低音1至高音1所对应的频率(Hz)依次是:
音符 1 2 3 4 5 6 7 + 1 2 3 4 5 6 7 + 1
频率131、147、165、175、196、220、247、262、294、330、349、392、440、494、523
频率值乘以二就提升该声音一个八度音阶,减半则降一个八度
启动时自动执行某脚本的命令:
add name="bootmusic1" on-event=music start-time=startup
将上面的music改成音乐脚本名.控制台中执行.当开机音乐吧hhh
脚本:
:set f "349,330,262,262,196,262,392,349,330,294,262,247,220,262,294,330,294,220,294,440,349,330,294,262,262,247,247,262,294,262,196,196,196,175,165,175,196,165,165,165,165,330,294,262,262,220,349,349,220,349,349,220,262,294,0,196,330,330,330,330,294,330,196,330,196,294,294,294,262,262,247,165,220,220,349,349,349,330,349,349,349,330,349,220,262,294,25,196,330,330,330,330,294,330,196,330,196,294,294,294,262,262,247,165,220,220,349,349,349,330,349,349,349,330,349,220,262,294,330,294,294,196,196,196,175,165,175,196,165,165,165,165,330,294,262,262,220,349,349,220,349,349,349,330,294,262,262,25,196,294,262,262";:set d "3s,1s,4s,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,2s,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,500ms,2s,4s,750ms,250ms,250ms,250ms,250ms,250ms,2s,500ms,250ms,250ms,250ms,500ms,250ms,1s,500ms,500ms,500ms,500ms,1s,500ms,500ms,500ms,500ms,2s,1s,250ms,250ms,250ms,250ms,250ms,250ms,250ms,500ms,1750ms,250ms,250ms,250ms,250ms,250ms,250ms,250ms,500ms,1750ms,250ms,250ms,250ms,250ms,250ms,750ms,250ms,250ms,250ms,500ms,500ms,500ms,3s,750ms,250ms,250ms,250ms,250ms,250ms,250ms,250ms,500ms,1750ms,250ms,250ms,250ms,250ms,250ms,250ms,250ms,500ms,1750ms,250ms,250ms,250ms,250ms,250ms,750ms,250ms,250ms,250ms,500ms,500ms,500ms,500ms,250ms,250ms,3s,750ms,250ms,250ms,250ms,250ms,250ms,2s,500ms,250ms,250ms,250ms,500ms,250ms,1s,500ms,500ms,500ms,500ms,1s,500ms,500ms,500ms,500ms,250ms,250ms,2s,750ms,250ms,250ms,250ms,3s";:set i 0 ; :while ($i<166) do={:beep freq=([:pick $f $i ($i+1)]*2) len=[:pick $d $i ($i+1)];:delay [:pick $d $i ($i+1)];:set i ($i+1)}
[ 本帖最后由 333ccc3c 于 2008-1-24 09:56 编辑 ] |