Board logo

标题: [特效代码] 批处理怎样用峰鸣器把铃儿响叮当的乐曲表达出? [打印本页]

作者: eddf    时间: 2012-10-15 12:23     标题: 批处理怎样用峰鸣器把铃儿响叮当的乐曲表达出?

铃儿响叮当,代码求助。

哪位高手能用峰鸣器把铃儿响叮当的乐曲表达出,用 nircmd 作第三方工具。

附上鸣响嘀哒的声音  一

nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200
nircmd beep 2000 100
nircmd beep 2000 200



附上鸣响嘀哒的声音  二




nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200
nircmd beep 4000 100
nircmd beep 4000 200



鸣响其他频率的声音




nircmd beep 300 500
nircmd beep 800 500
nircmd beep 1000 600
nircmd beep 2000 700
nircmd beep 3000 600
nircmd beep 4000 600
nircmd beep 5000 600
nircmd beep 6000 600
nircmd beep 7000 600
nircmd beep 8000 600
nircmd beep 9000 600
nircmd beep 300 500
nircmd beep 800 500
nircmd beep 1000 600
nircmd beep 2000 700
nircmd beep 3000 600
nircmd beep 4000 600
nircmd beep 5000 600
nircmd beep 6000 600
nircmd beep 7000 600
nircmd beep 8000 600
nircmd beep 9000 600
作者: apang    时间: 2012-10-15 20:56

不是高手,并且五音不全。。。的说
  1. @echo off&setlocal enabledelayedexpansion
  2. for %%a in (160 266 372 475 581 687 793 896) do (
  3.   set str=%%a
  4.   set "H!str:~,1!=!str:~1!0"
  5. )
  6. for %%a in (32 32 34 32 32 34 32 52 13 21 38) do (
  7.   set str=%%a
  8.   for %%b in ("!str:~,1!") do nircmd beep !H%%~b! !str:~1!00
  9. )
  10. for %%a in (42 42 44 42 32 34 32 32 22 12 24 54) do (
  11.   set str=%%a
  12.   for %%b in ("!str:~,1!") do nircmd beep !H%%~b! !str:~1!00
  13. )
  14. pause
复制代码

作者: eddf    时间: 2012-10-16 09:57

本帖最后由 eddf 于 2012-10-16 10:03 编辑

回复 2# apang


            代码还可以。


            视频:铃儿响叮当


            http://v.youku.com/v_show/id_XMzMxNTQ3ODI0.html


            在线播放:铃儿响叮当


            http://www.1ting.com/player/67/player_47698.html
作者: apang    时间: 2012-10-16 19:33

音调调整了下 完整的铃儿响叮当
  1. @echo off&setlocal enabledelayedexpansion
  2. set "a1=x3 33 23 13 x12 x3 33 23 13 y12 y3 43 33 23"
  3. set "a2=z12 53 53 43 23 312"
  4. set "a3=54 52 53 53 63 53 43 23 112"
  5. set "a4=33 33 36 33 33 36 33 53 14 22 312 43 43 46 43 33 36"
  6. set "a5=33 23 23 13 26 56"
  7. set "a6=53 53 34 22 112"
  8. for %%a in (x60 y72 z84 190 2102 3114 4120 5132 6144 7156) do (
  9.   set str=%%a
  10.   set "H!str:~,1!=!str:~1!0"
  11. )
  12. for %%a in (%a1% %a2% %a1% %a3%) do (
  13.   set str=%%a
  14.   for %%b in ("!str:~,1!") do nircmd beep !H%%~b! !str:~1!00
  15. )
  16. for %%a in (%a4% %a5% %a4% %a6%) do (
  17.   set str=%%a
  18.   for %%b in ("!str:~,1!") do nircmd beep !H%%~b! !str:~1!00
  19. )
  20. pause
复制代码

作者: wc726842270    时间: 2012-10-20 05:52

话说,L主的蜂鸣器好强大啊,这和弄也不怕坏??当然,也可能是我小白了
作者: netbenton    时间: 2012-10-20 17:26

哈哈,syxq.com的使用说明用的就是这个背景音乐




欢迎光临 批处理之家 (http://bathome.net./) Powered by Discuz! 7.2