This patch is based on @tomjnixon's question about building a gain matrix graph. When pondering the possibility of building it in r-audio I found that the way I've implemented RSplitChannels was a bit naive, and a gain matrix couldn't be built with it.
This patch makes significant changes in how channel connections are inferred. connectFrom- and ToChannel props now trickle down from encapsulating graph components to the actual AudioNodes. The default channel routing of RSplitChannels is now configurable at the containing node level, even when more RSplits are involved.
I've also added a GainMatrix example illustrating this. Here's what the demo page looks like:
This patch also makes small changes to the Mutation example which make it a bit more sensible.
This patch is based on @tomjnixon's question about building a gain matrix graph. When pondering the possibility of building it in r-audio I found that the way I've implemented
RSplitChannels
was a bit naive, and a gain matrix couldn't be built with it.This patch makes significant changes in how channel connections are inferred.
connectFrom-
andToChannel
props now trickle down from encapsulating graph components to the actual AudioNodes. The default channel routing ofRSplitChannels
is now configurable at the containing node level, even when moreRSplits
are involved.I've also added a GainMatrix example illustrating this. Here's what the demo page looks like:
This patch also makes small changes to the Mutation example which make it a bit more sensible.