Macro knyst::inputs

source ·
macro_rules! inputs {
    (($channel:literal : $constant:expr)) => { ... };
    (($channel:literal : $constant:expr), $($y:tt), +) => { ... };
    (($channel:literal : $constant:expr; $nodes:expr)) => { ... };
    (($channel:literal : $constant:expr; $nodes:expr), $($y:tt), +) => { ... };
    (($channel:literal ; $nodes:expr)) => { ... };
    (($channel:literal ; $nodes:expr), $($y:tt), +) => { ... };
    () => { ... };
}
Expand description

Create an InputBundle using the syntax

// Connect from channel 0
let input_bundle = inputs![(0: input_constant ; input_node_outputs)];

where both input_constant and input_node_outputs are optional. Multiple tuples can be put in the same inputs! invocation.