Skip to main content

Lfo

Struct Lfo 

Source
pub struct Lfo {
    pub waveform: LfoWaveformDsl,
    pub timing_r: f64,
    pub timing_c: f64,
}

Fields§

§waveform: LfoWaveformDsl§timing_r: f64§timing_c: f64

Trait Implementations§

Source§

impl Clone for Lfo

Source§

fn clone(&self) -> Lfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Component for Lfo

Source§

fn clone_box(&self) -> Box<dyn Component>

Clone into a boxed trait object.
Source§

fn as_any(&self) -> &dyn Any

Downcast to Any for type-erased equality checks and downcasting.
Source§

fn as_any_mut(&mut self) -> &mut dyn Any

Downcast to Any mutably for in-place mutation (e.g., tolerance tweaks).
Source§

fn dyn_eq(&self, other: &dyn Component) -> bool

Dynamic equality: returns true if other is the same concrete type and compares equal.
Source§

fn type_tag(&self) -> &'static str

Human-readable type name (e.g. “resistor”, “NPN transistor”).
Source§

fn is_passive(&self) -> bool

Whether this component is passive (collectible by BFS for stage building).
Source§

fn pin_config(&self) -> PinConfig

Valid pins and aliases for this component type.
Source§

fn graph_role(&self) -> GraphRole

How this component participates in circuit graph construction.
Source§

fn stamp_mna( &self, _comp_id: &str, _n1: Option<usize>, _n2: Option<usize>, _mna: &mut MnaSystem, _sample_rate: f64, ) -> StampResult

Stamp into MNA system. Returns what was produced. Read more
Source§

fn validate_values(&self, comp_id: &str) -> Vec<(Severity, String)>

Check for suspicious or invalid component values.
Source§

fn controls(&self) -> Vec<ControlParam>

Declare controllable parameters for this component. Read more
Source§

fn footprint_ref(&self) -> (&'static str, &'static str)

KiCad symbol library reference and designator prefix.
Source§

fn symbol_name(&self) -> &'static str

Symbol identifier for layout rendering (e.g., “resistor”, “triode”, “opamp”).
Source§

fn layout_class(&self) -> &'static str

Layout class identifier for placement grouping (e.g., “resistor”, “npn”, “opamp”).
Source§

fn is_modulation_source(&self) -> bool

Source§

fn solver_hint(&self) -> Option<SolverMethod>

Return the preferred nonlinear solver method for this component. Read more
Source§

fn ports(&self) -> Vec<(&'static str, &'static str)>

Terminal pairs carrying current through this component. Read more
Source§

fn nonideal_fx(&self, _sample_rate: f64) -> Vec<NonIdealFx>

Non-ideal behaviors for this component (GBW, slew, rails, thermal, etc.). Read more
Source§

fn output_impedance(&self) -> OutputImpedance

Output impedance at this component’s output pin. Read more
Source§

fn signal_terminals(&self) -> SignalTerminals

Signal flow classification for this component’s pins. Read more
Source§

fn port_semantic(&self, _pin_a: &str, _pin_b: &str) -> PortSemantic

Classify the electrical behavior of a port (pin pair) for optimization legality checks. The compiler uses this to determine which subgraphs can be safely lowered to IIR/BlackFeedback vs requiring full MNA/WDF. Read more
Source§

fn is_nonlinear(&self) -> bool

Whether this component is a nonlinear element (needs NR solver).
Source§

fn is_active_ic(&self) -> bool

Whether this component is an active IC (counted toward num_active).
Source§

fn is_control_only(&self) -> bool

Whether this component is a control-only element (no circuit pins).
Source§

fn is_variable(&self) -> bool

Whether this component’s edge impedance changes at runtime. Stages containing variable edges need scattering matrix recomputation.
Source§

fn modulation_pins(&self) -> &'static [&'static str]

Extra pins that are valid as modulation targets but may not be in pin_config.
Source§

fn edges(&self) -> Vec<ComponentEdge>

Declare this component’s circuit edges with their electrical classification. Read more
Source§

fn signal_adjacencies(&self) -> Vec<(&'static str, &'static str)>

Internal signal-path adjacencies: pin pairs that signal can traverse through. Read more
Source§

fn pin_direction(&self, _pin: &str) -> PinDirection

Infer the signal direction for a given pin on this component. Read more
Source§

fn resolve_edges( &self, _neighbors: &ResolveContext, ) -> Option<Vec<ComponentEdge>>

Context-dependent resolution: if this component’s behavior depends on how it’s wired, return a new edge list reflecting the resolved role. Read more
Source§

fn mna_vsource_count(&self) -> usize

Number of MNA voltage sources this component needs when stamped into an R-node. Default: 0. Op-amps return 1 (for the VCVS constraint).
Source§

fn mna_internal_node_count(&self) -> usize

Number of internal MNA nodes this component needs. Default: 0. Op-amps return 1 (internal gain stage node for GBW pole).
Source§

fn stamp_mna_multi( &self, comp_id: &str, ctx: &mut StampContext<'_>, mna: &mut MnaSystem, ) -> StampResult

Stamp this component into an MNA system using multi-terminal pin resolution. Read more
Source§

fn make_leaf(&self, _comp_id: &str, _sample_rate: f64) -> Option<DynNode>

Create a WDF leaf node for this component. Returns None for non-leaf components (diodes, virtual elements, etc.).
Source§

fn resistance(&self) -> Option<f64>

Source§

fn capacitance(&self) -> Option<f64>

Source§

fn inductance(&self) -> Option<f64>

Source§

fn terminal_requirements(&self) -> Vec<(&'static str, Vec<NeighborReq>)>

Per-terminal neighbour requirements for active devices. Read more
Source§

fn classify_nonlinear( &self, _comp_id: &str, _node_a: usize, _node_b: usize, _gnd_node: usize, _node_names: &HashMap<String, usize>, ) -> Option<(NonlinearKind, Vec<usize>)>

Classify this component as a nonlinear element for the circuit solver. Read more
Source§

fn modulation_sink(&self, _pin: &str) -> Option<ModulationSink>

If this component can be a modulation sink (LFO/envelope target), return the sink description for the given pin. Read more
Source§

fn is_bjt(&self) -> bool

Source§

fn is_jfet(&self) -> bool

Source§

fn is_mosfet(&self) -> bool

Source§

fn is_tube(&self) -> bool

Source§

fn is_transformer(&self) -> bool

Source§

fn is_pot(&self) -> bool

Source§

fn is_diode_family(&self) -> bool

Source§

fn is_trigger(&self) -> bool

Source§

fn feedback_input_is_barrier(&self) -> bool

Whether this element’s input node acts as a summing junction that should block BFS traversal in the signal flow graph. Read more
Source§

fn k_method_spec(&self) -> Option<KMethodSpec>

K-method table shape declared by the component. Read more
Source§

fn k_method_candidacy(&self) -> (bool, usize, &'static str)

Compatibility wrapper for callers that still only need yes/no + dimensionality. New code should prefer Component::k_method_spec because it preserves the meaning of each table axis.
Source§

fn is_simple_passive(&self) -> bool

Passive two-terminal element (R, C, L, etc.) — excludes transformers and pots.
Source§

fn is_gain_device(&self) -> bool

Amplifying device: tube, BJT, JFET, MOSFET.
Source§

fn model_name(&self) -> Option<&str>

Source§

fn op_amp_type(&self) -> Option<OpAmpType>

Source§

fn pot_taper(&self) -> Option<PotTaper>

Source§

fn diode_type(&self) -> Option<DiodeType>

Source§

fn transformer_config(&self) -> Option<&TransformerConfig>

Source§

fn apply_bias( &self, _bias_voltages: &HashMap<String, f64>, _supply_voltage: f64, ) -> BiasResult

Apply DC bias from a static bias network detected at compile time. Read more
Source§

fn display_value(&self) -> Option<String>

Human-readable display value for labels (e.g., “4.7kΩ”, “100nF”).
Source§

impl Debug for Lfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Lfo

Source§

fn eq(&self, other: &Lfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Lfo

Auto Trait Implementations§

§

impl Freeze for Lfo

§

impl RefUnwindSafe for Lfo

§

impl Send for Lfo

§

impl Sync for Lfo

§

impl Unpin for Lfo

§

impl UnsafeUnpin for Lfo

§

impl UnwindSafe for Lfo

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more