🎵 Web Audio Metronome

A precise metronome built on the Web Audio API with selectable time signatures for instrument practice and rhythm training.

📐 工作原理與說明
拍間隔(ms) = 60000 / BPM;每小節拍數由拍號(如 4/4、3/4)決定
基於 Web Audio 的精確時鐘排程:按 BPM 計算拍間隔並預排音訊事件以降低定時抖動;支援多種拍號與重音,用於樂器練習與節奏訓練。
120

BPM(四分音符)

BPM 按每拍一個四分音符計;切到 6/8 後按八分音符計,每小節 6 拍。

拍點僅顯示當前拍,不可點選;切換拍號會在下一拍重新起拍並同步音訊。
💡 常用速度:Largo(40-60)廣板 | Andante(76-108)行板 | Moderato(108-120)中板 | Allegro(120-156)快板 | Presto(168-200)急板
🎵 示例速度:

📚 深度解析:線上節拍器

💡 常見使用場景

  • 練琴跟拍。
  • 節拍訓練。
  • 教學示範。
120 BPM 節拍

輸入:BPM 120、拍號 4/4。

處理:Web Audio 定時發聲。

輸出:穩定節拍聲,本地播放。

❓ 常見問題(FAQ)

準嗎?
Web Audio 時鐘較準;極端後臺可能被節流,以實測為準。
需要音訊檔案嗎?
無需檔案,Web Audio 直接發聲;僅本地播放不上傳。
會儲存或上傳我的內容嗎?
結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。

Formula & Standard References

Item Formula / Note Source / Standard
Beat interval interval = 60 / BPM, so 120 BPM means half a second per beat Musical tempo convention
Lookahead scheduling schedule ahead against the audio clock to avoid timer drift Web Audio API specification
Autoplay policy start the audio context from a user gesture or it stays suspended Web Audio API specification
⚠️ 使用說明與注意事項