SoX:我可以同时产生声音吗?

roo*_*ofl 1 bash sox

我使用 SoX 来生成这个声音:

\n\n
$ play -n synth 1 pluck E3 repeat 2\n
Run Code Online (Sandbox Code Playgroud)\n\n

我设法在新的终端选项卡上同时播放另一种模式,让 \xe2\x80\x99s 说$ play -n synth 1.5 pluck C3 repeat 2。有没有办法在同一个 bash 脚本中同时播放这两种模式?

\n

小智 5

这将实现您所需要的,在左声道上播放 E3,在右声道上播放 C3:

$ play -n synth 1 pluck E3 pluck C3 repeat 2
Run Code Online (Sandbox Code Playgroud)

如果您想在两个通道上播放两个音符,请添加通道效果:

$ play -n synth 1 pluck E3 pluck C3 repeat 2 channels 1
Run Code Online (Sandbox Code Playgroud)

摘自 SoX 手册,合成效果位于 http://sox.sourceforge.net/sox.html

...多个合成器效果可以级联以产生更复杂的波形;...