{"type":"rich","version":"1.0","provider_name":"Hatena Blog","url":"https://memo88.hatenablog.com/entry/web-audio-api-gainnode-decibel","published":"2025-01-21 20:13:20","categories":[],"title":"Web Audio API/GainNode: \u30c7\u30b7\u30d9\u30eb\u6307\u5b9a\u3067\u97f3\u91cf\u8abf\u6574","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2Fweb-audio-api-gainnode-decibel\" title=\"Web Audio API/GainNode: \u30c7\u30b7\u30d9\u30eb\u6307\u5b9a\u3067\u97f3\u91cf\u8abf\u6574 - memo486\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/sonota88/","blog_url":"https://memo88.hatenablog.com/","width":"100%","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/sonota88/20250121/20250121083640.png","description":"\u7d50\u8ad6\u3068\u3057\u3066\u306f // gainNode.gain.value == 1.0 \u306e\u3068\u304d\u306e\u97f3\u91cf\u3092\u57fa\u6e96\uff080 dB\uff09\u3068\u3057\u3066 // -10 dB \u306e\u97f3\u91cf\u306b\u3059\u308b\u5834\u5408\u306e\u4f8b const db = -10; gainNode.gain.value = Math.pow(10, db / 20); \u3067\u3088\u3055\u305d\u3046\u3002 GainNode.gain.value \u306b\u6307\u5b9a\u3059\u308b\u5024\u306b\u3064\u3044\u3066\u306f\u4e00\u3064\u524d\u306e\u8a18\u4e8b\u3067\u66f8\u304d\u307e\u3057\u305f\u306e\u3067\u305d\u3061\u3089\u3082\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 memo88.hatenablog.com \u30e1\u30e2 \u5bfe\u6570\u30b9\u30b1\u30fc\u30eb\uff08dB\uff09\u304b\u3089\u7dda\u5f62\u30b9\u30b1\u30fc\u30eb\u3078\u306e\u5909\u63db\u3060\u304b\u3089 Math.pow \u304c\u51fa\u3066\u304f\u308b\u306e\u306f\u5206\u304b\u308b\u3051\u3069 db / 20 \u306e 20 \u3063\u3066\u4f55\uff1f \u3068\u3044\u3046\u3042\u305f\u2026","provider_url":"https://hatena.blog","author_name":"sonota88","blog_title":"memo486"}