[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

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

铃儿响叮当,代码求助。

哪位高手能用峰鸣器把铃儿响叮当的乐曲表达出,用 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

不是高手,并且五音不全。。。的说
  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
复制代码
1

评分人数

    • eddf: for语句用得好技术 + 1

TOP

本帖最后由 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

TOP

音调调整了下 完整的铃儿响叮当
  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
复制代码
1

评分人数

    • eddf: 感谢分享,太棒了。技术 + 1

TOP

话说,L主的蜂鸣器好强大啊,这和弄也不怕坏??当然,也可能是我小白了
枫中残雪:风停了,我的心却在动,让我心中的寒意走向远方

TOP

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

TOP

返回列表