pub enum NodeId {
Show 43 variants Nop, Amp(u8), Mix3(u8), Mux9(u8), SMap(u8), Map(u8), Quant(u8), CQnt(u8), TSeq(u8), Code(u8), Rust1x1(u8), Sampl(u8), Sin(u8), BOsc(u8), VOsc(u8), BowStri(u8), MidiP(u8), MidiCC(u8), ExtA(u8), ExtB(u8), ExtC(u8), ExtD(u8), ExtE(u8), ExtF(u8), Inp(u8), Out(u8), FbWr(u8), FbRd(u8), Scope(u8), Ad(u8), Adsr(u8), TsLFO(u8), RndWk(u8), Delay(u8), AllP(u8), Comb(u8), Noise(u8), FormFM(u8), SFilter(u8), FVaFilt(u8), BiqFilt(u8), PVerb(u8), Test(u8),
}
Expand description

This enum is a collection of all implemented modules (aka nodes) that are implemented. The associated u8 index is the so called instance of the corresponding Node type.

This is the primary way in this library to refer to a specific node in the node graph that is managed by crate::NodeConfigurator and executed by crate::NodeExecutor.

To see how to actually use this, refer to the documentation of crate::Cell, where you will find an example.

Variants

Nop

Amp(u8)

Mix3(u8)

Mux9(u8)

SMap(u8)

Map(u8)

Quant(u8)

CQnt(u8)

TSeq(u8)

Code(u8)

Rust1x1(u8)

Sampl(u8)

Sin(u8)

BOsc(u8)

VOsc(u8)

BowStri(u8)

MidiP(u8)

MidiCC(u8)

ExtA(u8)

ExtB(u8)

ExtC(u8)

ExtD(u8)

ExtE(u8)

ExtF(u8)

Inp(u8)

Out(u8)

FbWr(u8)

FbRd(u8)

Scope(u8)

Ad(u8)

Adsr(u8)

TsLFO(u8)

RndWk(u8)

Delay(u8)

AllP(u8)

Comb(u8)

Noise(u8)

FormFM(u8)

SFilter(u8)

FVaFilt(u8)

BiqFilt(u8)

PVerb(u8)

Test(u8)

Implementations

Consistently initialize the phase for oscillators. This does some fixed phase offset for the first 3 instances, which is usually relied on by the automated tests.

This maps the atom index of the node to the absolute ParamId in the GUI (and in the crate::matrix::Matrix). The Atom/Param duality is a bit weird because they share the same ID namespace for the UI. But in the actual backend, they are split. So the actual splitting happens in the crate::matrix::Matrix.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.