Expand description
Model lookup functions — bridges pedalkernel’s model DB to pedalkernel-rt types.
pedalkernel-rt defines the model structs (JfetModel, TriodeModel, etc.) but cannot contain the SPICE model database (it’s no_std). These free functions look up models by name from pedalkernel’s embedded model DB and convert them to the runtime types.
Functions§
- bjt_
model_ by_ name - Look up a Gummel-Poon BJT model by name from the model registry. Panics if the model name is not found.
- bjt_
try_ by_ name - Try to look up a Gummel-Poon model by name. Returns
Noneif not found. - jfet_
model_ by_ name - Look up a JFET model by name from the embedded SPICE model file.
- jfet_
try_ by_ name - Try to look up a JFET model by name. Returns
Noneif not found. - opamp_
model_ by_ name - Look up a compact op-amp model by name from the model registry. Panics if the model name is not found.
- opamp_
model_ from_ type - Convert from DSL OpAmpType to runtime OpAmpModel.
- opamp_
try_ by_ name - Try to look up a compact op-amp model by name. Returns
Noneif not found. - ota_
gm_ from_ type - Return an OTA transconductance from the model registry.
- pentode_
model_ by_ name - Look up a pentode model by name from the model registry. Panics if the name is not found.
- pentode_
try_ by_ name - Look up a pentode model by name, returning None if not found.
- transformer_
config_ from_ dsl - Resolve a DSL transformer instance against the embedded model registry.
- triode_
model_ by_ name - Look up a triode model by name from the model registry. Panics if the name is not found.
- triode_
try_ by_ name - Look up a triode model by name, returning None if not found.