Pythonは科学計算のライブラリが充実している。それらのライブラリを使うことで、サイン波を手軽に生成できる。そうであれば、簡単なシンセサイザーを作ることもできるだろう。今回は、PythonのライブラリPyAudioとNumPyで音楽の生成に挑戦してみよう。
前回、購入したばかりのM1 Macbook ProにPython環境を構築して、いよいよAudio周りを弄ろうと思ったらつまづいた。 今回試したソースコードはIntel Macでは問題なく動いていたので、M1 Macに起因する問題じゃないかと。 進めてるマスクづくりは最終的にRaspberry piに ...
This is a beginner-friendly project that demonstrates how to capture and recognize human speech using Python. The project utilizes the SpeechRecognition and PyAudio libraries to process audio input ...
This little LED rig fades in time to music. The hardware itself is quite simple, some LEDs connected to the PWM pins of an Arduino. But the signal processing is happening on a computer using a Python ...
さて、ここしばらく新しいPCの環境整備しています。旧PCではPython 3.12.3を長らく使っていたのですが、新PCではこの機に新しくしようとして、3.14.2にしたのです。 そして早速、問題が発生しました!既存のコードを走らせようとしたらエラーが出たのです。