Skip to content

Other user-friendly API ideas. #49

@mitchmindtree

Description

@mitchmindtree

Currently the trait-based node graph approach is very fast, efficient, and quite user friendly. However, it has the tendency to lead toward a slightly more OOP design, which can often feel like a bit of an up-hill battle with Rust.

I'm interested in coming up with some ideas for a more user-friendly, perhaps functional-esque way of describing the node graph.

One idea I was considering was to implement the bitshift operators for describing a series of inputs in a sort of Chain. I.e.

let chain: Chain = output << master << bus << effect << effect << synth;

where each element in the chain can be either

  • T
  • Vec<T> or
  • another Chain

where T: Node.

I'll keep thinking on this and try come up with some better examples.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions