概要
Simple example of implementing a clip-detecting volume meter in Web Audio.
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルSimple volume meter
I whipped this app up to show a basic volume meter on live audio input. It does both clip detection and RMS volume.
A "volume" meter can mean many things; if you want to do clip detection, you really need to access every sample. If you don't need clip detection, I might suggest using an Analyser and getByteTimeDomainData, since it will likely have lower CPU overhead. Note that it is CRITICALLY IMPORTANT to disassociate visual rendering (in the requestAnimationFrame loop) from the onaudioprocess function - you do NOT want to trigger a relayout from inside your audio handler, or it may glitch or cause other issues.
It's also hosted at https://webaudiodemos.appspot.com/volume-meter/.
Check it out, feel free to fork, submit pull requests, etc. MIT-Licensed - party on.
-Chris
関連プロジェクトを探す
読み込み中…