最近、Device関連のHTML5 APIが盛り上がっています。 この記事はWeb Audio APIに関する記事の続きです。 頑張ると、色々とスゴいコトもできてしまうWeb Audio API。 最終的にHTML5 Advent Calendar向けにまとめますので、まとめて読みたい方は12/7までお待ちください。 とりあえずデモ 一番簡単な「音楽のボリュームをコントロールする」デモです。 startボタンを押すとSVG girl themeが流れます スクロールバーで音量を調整できます。 これはなに? Web Audio APIでは音源(AudioSourceNode)と出力(AudioDestinationNode)を繋ぐことによって音楽を出力します。 音楽に何かしらの効果をつけたい場合は、AudioSourceNodeとAudioDestinationNodeの間に効果に応じたNo