2

我将 Pure Data 用于一个项目,我将同时向不同的扬声器播放多个音频文件。

假设我有两个文件,我想要一个在声卡的左声道播放,第二个在右声道播放,所以这是dac~ 1 2对象的第一个和第二个入口。

如何根据另一个值路由音频信号?

我基本上是在寻找类似route对象的东西,但带有一些额外的参数,或者以某种方式将音频信号与通道号 (1、2) 打包并使用该数字来路由信号。

我刚刚发现 Yves Degoyon 的“未经授权”库具有spigot~执行我想要的操作的对象,但只有两个通道。最后,我希望能够将不同的声音输出到八个或九个通道。

4

3 回答 3

3

Pd-extended 不再维护。您可以通过 Debian 软件包或Deken插件为 Vanilla Pd 安装Zexy 。然后您将拥有可用的对象。但是,您可能根本不想使用外部设备可能有充分的理由。这是修补一种交换机的一种方法。额外的好处:您可以指定您喜欢的淡入淡出时间和类型。demultiplex~

总机

于 2016-05-28T17:18:18.100 回答
2

You can use [demultiplex~] from the Zexy library to route one incoming signal to one of several outlets. For instance, [demultiplex~ 1 2 3 4] will have one inlet and four outlets. The single inlet takes both an incoming signal (which will be routed) as well as an single float which selects the outlet to which the signal will be routed. For the opposite behaviour (several incoming signals to several inlets, and only one of them being output by the single outlet) try [multiplex~].

Also note that you can use [mux~] and [demux~] as they are aliases for these same objects.

于 2016-05-25T00:08:43.773 回答
0

根据 Max N 答案,您还可以使用切换来修改信号的音量并知道它重定向的位置:

例子

在这种情况下,如果切换处于活动状态,信号将在左侧出口发送。如果它处于非活动状态,则正确的插座将接收到信号。

于 2018-03-25T22:36:54.720 回答