RustAudio / dsp-chain

A library for chaining together multiple audio dsp processors/generators, written in Rust!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a `detect_master_idx` method.

mitchmindtree opened this issue · comments

This should detect the index of the master node by finding the only node that only has incoming connections and no outgoing connections.

One issue is that it is currently possible for there to be multiple Nodes with no outgoing connections - we might be able to fix this by tightening the method for adding nodes i.e. we could force a user to only be able to add Nodes as long as they connect to some pre-existing node within the graph. This might be too restrictive to be worth it though.