dsp-chain 0.13.1

Provides a Node trait and a Graph type for chaining together audio generators/processors in a dsp graph.
//! 
//! A generic, fast, audio digital signal processing library.
//!
//! There are two primary points of interest:
//!
//! 1. The [**Graph** type](./graph/struct.Graph.html) - a directed, acyclic audio DSP graph.
//!
//! 2. The [**Node** trait](./node/trait.Node.html) - to be implemented for types used within the
//!    **Graph**.
//!

#![forbid(unsafe_code)]
#![deny(missing_docs)]

pub extern crate daggy;
pub extern crate sample;

pub use daggy::Walker;
pub use graph::{
    Connection,
    Dag,
    EdgeIndex,
    Graph,
    Inputs,
    NodeIndex,
    NodesMut,
    Outputs,
    PetGraph,
    RawEdges,
    RawNodes,
    VisitOrder,
    VisitOrderReverse,
    WouldCycle,
};
pub use node::Node;
pub use sample::{
    conv,
    rate,
    slice,
    signal,
    Duplex as DuplexSample,
    Frame,
    FromSample,
    ToSample,
    Sample,
    Signal,
};

mod graph;
mod node;

/// The amplitude multiplier.
pub type Volume = f32;

/// The spacial positioning of the node. Currently only supports Stereo or Mono.
/// -1.0 = Left.
///  0.0 = Center.
///  1.0 = Right.
pub type Panning = f32;