that's what i thought in the very very beginning so i just said "i'll keep it simple, every component has 2 pins"
anyway, i've fixed that, i got a potentiometer class now
i went with whatever is on qucs technical documentations (i think it's the gummel-poon with "gm" "go" stuff (the one that looked simpler to me)Archit3ch wrote: Start with Ebers-Moll for audio.
i'm not a fan of discord, and most other newer chats with closed clients and inability to run your own server/network... i'm on IRC stillArchit3ch wrote: We have an #analog-modeling channel in The Audio Programmer Discord.There are people posting about their solver attempts.
if the client is written in the spirit of "let's use a webbrowser engine for the GUI" - i don't have that much RAM to throw away (this same thing applies to my choice of text editor, IDE and such)
it's still early, i think i'm far from the point where i can use the output of this for anything serious, i just added the ability for series resistors on components, and parameter presets (mainly for the transistor but also for the diode). currently i'm testing the result in another CLI app which can write the result in a .wav, or print values to the terminalArchit3ch wrote:antto wrote: Wed May 27, 2026 8:35 pmCode: Select all
template<typename T> struct capacitor { inline void save(const T vd) { ieq += 2*(g*vd-ieq); // hardcoded trapezoidal integrator. not bad, but this should be abstracted out as an integrator choice } };
i don't see why not, unless for the "float" being not enough for circuit simulation? (i already saw in a few places that double precision is used on the PC)Archit3ch wrote: Uh, none of that is gonna run on a Cortex-M4F.
With the possible exception of the simplest of simple circuits.

