[][src]Struct bae_rs::sounds::complex_sound::ComplexSound

pub struct ComplexSound { /* fields omitted */ }

Type implementing the ability to run multiple Generators and Modifiers within a single object, granting the ability to creat complex systems like those found in digital synthesizers.

Methods

impl ComplexSound[src]

pub fn new(input_gain: MathT, output_gain: MathT) -> Self[src]

Creates a new ComplexSound object with the given input and output gain values.

pub fn get_input_gain(&self) -> GraphNode[src]

Returns the ['GraphNode'] containing the input gain Modifier.

pub fn get_output_gain(&self) -> GraphNode[src]

Returns the ['GraphNode'] containing the output gain Modifier.

pub fn add_block(&mut self, block: BasicBlockRc) -> GraphNode[src]

Adds a new node to the Graph, using the given Block for the node value. Returns the GraphNode cointaing the Block for later use with [add_connection] and [remove_connection].

pub fn add_connection(&mut self, from: GraphNode, to: GraphNode)[src]

Adds a new connection (edge) between the two given GraphNodes.

pub fn remove_connection(&mut self, from: GraphNode, to: GraphNode)[src]

Removes a connection between the two given GraphNodes.

pub fn get_nodes(&self) -> ProcessOrder[src]

Returns a copy of the list of all nodes of the graph in the order in which they will be processed.

Trait Implementations

impl Clone for ComplexSound[src]

impl Sound for ComplexSound[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,