[][src]Module oscen::signal

Core Oscen types and traits.

Structs

Iter
Link

Use to connect subracks to the main rack. Simply store the value of the input node from the main rack as a link module, which will be the first module in the subrack.

Rack

A Rack is basically a HashMap of synth modules to be visited in the specified order.

SynthModule

SynthModules for the rack will have both a module (i.e an implementor of Signal) and will store their current signal value as output

Enums

In

Inputs to synth modules can either be constant (Fix) or a control voltage from another synth module (Cv).

Constants

TAU

Traits

Builder
Gate

Types that implement the gate type can be turned on and off from within a Rack, e.g. envelope generators.

Signal

Synth modules must implement the Signal trait. In fact one could define a synth module as a struct that implements Signal. as_any_mut is necessary so that modules can be downcast in order to access their specific fields.

Functions

arc

Convenience function for Arc<Mutex<...>.

connect

Connect the source module to the field input of the dest module.

mk_tag

Generate a unique tag for a synth module.

Type Definitions

ArcMutex
Real
Sig

Signals typically need to decalare that they are Send so that they are thread safe.

Tag