Pythonは科学計算のライブラリが充実している。それらのライブラリを使うことで、サイン波を手軽に生成できる。そうであれば、簡単なシンセサイザーを作ることもできるだろう。今回は、PythonのライブラリPyAudioとNumPyで音楽の生成に挑戦してみよう。
# PyAudio needs a specific config and built version of Portaudio. # both PortAudio and Libasound2-dev need to be APT installed. # This script downloads the libasound2 ...