0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CodePen : HTML + JavaScriptで入力音声のスペクトルを音階上に描画してみた

Last updated at Posted at 2020-01-27

See the Pen ToneAnalyzerTest by kob58im (@kob58im) on CodePen.

A4 = 440Hzとしています。(CDEFGAB=ドレミファソラシド)

※描画位置の調整をさぼっているため、表示が最大で半音くらいずれていそうです。気が向いたら見直します。

キャプチャ

880Hzと440Hzのsin波を鳴らしたとき
image.png

アクセス権限についての注意

JavaScriptでgetUserMediaでマイク・カメラ(ビデオ)を使うときの注意点とデバイスへのアクセス権限について

参考サイト

getUserMediaで音声を拾いリアルタイムで波形を出力する

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?