Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Pythonで2、3、またはそれ以上の正弦波を5秒間再生したいと思います。これを実行できる.auまたは.wavファイルの書き方は知っていますが、サウンドカードで直接再生したいと思います。pyoを使用して1つの正弦波でこれを行う方法を知っていますが、2つ以上でこれを実行したいので、行き詰まります。道を教えてくれませんか。
ありがとう!
pyoのオシレーターは個々のエンティティであるため、同時に機能する複数のインスタンスを作成できます。
from pyo import * s = Server().boot() osc1 = Sine(freq=440).out() osc2 = Sine(freq=810).out() s.start() s.gui(locals())
倍音は非常に苦痛ですが、2つのオシレーターが合計されていることを非常に明確に示す必要があります。