PS C:\> (get-content d:\TwoTigers.txt) |
            foreach { `
               if($_ -eq "") `
                 {sleep 0.5}  `
               else `
                { $a = $_.split(); `
                  [console]::Beep($a[0],$a[1]) `
                } `
            }


TwoTigers.txt內容如下
(左邊為頻率, 右邊為毫秒數)
264 500
297 500
330 500
264 500
264 500
297 500
330 500
264 500
330 500
352 500
396 500

330 500
352 500
396 500

396 250
440 250
396 250
352 250
330 500
264 500
396 250
440 250
396 250
352 250
330 500
264 500
264 500
198 500
264 500

264 500
198 500
264 500

 

[註]
參考資料
http://bbs.wefong.com/archiver/?tid-497684.html 
Jingle

[註]
聽起來感覺很不順 @_@

arrow
arrow
    全站熱搜

    ayowu 發表在 痞客邦 留言(0) 人氣()