Commit Graph

9530 Commits

Author SHA1 Message Date
Holger Vogt 9f2f8bd567 Oversampling default is 1 2026-04-30 13:06:30 +02:00
Holger Vogt 8fda6f73ba Install ngspice wav on Ubuntu 24.04 2026-04-30 13:06:30 +02:00
Holger Vogt d774f5cf7c Examples for wav audio simulation. 2026-04-30 13:06:29 +02:00
Holger Vogt 412d9a7289 Update to ngspice-43. 2026-04-30 13:06:29 +02:00
Holger Vogt 2c9f7a7ebf Use the most recent samplerate.dll from
https://github.com/libsndfile/libsamplerate/releases
2026-04-30 13:06:29 +02:00
Holger Vogt d26c19f984 Remove source of memory errors: read and write beyond boundaries
caused segfaults.
2026-04-30 13:06:29 +02:00
Holger Vogt 302df8ddac Enable most recent build of sndfile.dll from
https://github.com/libsndfile/libsndfile
2026-04-30 13:06:29 +02:00
Holger Vogt 5bf1e82ac3 Just a small fix 2026-04-30 13:06:29 +02:00
Holger Vogt f4c56990f8 prevent a segfault when TSTOP less than TSTART in tran command 2026-04-30 13:06:28 +02:00
Holger Vogt 17665eb843 allow other simulation types, e.g. ac
prevents crash
2026-04-30 13:06:28 +02:00
Holger Vogt 271e9ce6b1 Enable compilation of shared ngspice with wav support 2026-04-30 13:06:28 +02:00
Holger Vogt 7a88c3341d Enable compiling with *.wav (audio) file support. 2026-04-30 13:06:28 +02:00
Holger Vogt 831754e71a Enable standard search paths for *.wav file search. 2026-04-30 13:06:28 +02:00
Holger Vogt 44a625e4df add dot commands .sndprint, .sndparam in inp.c 2026-04-30 13:06:28 +02:00
Holger Vogt 852c48194b Formatting: tabs to spaces 2026-04-30 13:06:27 +02:00
Holger Vogt 50c5a8e2ea Remove unused 2026-04-30 13:06:27 +02:00
Holger Vogt 338e50f15d update to enable compiling for Linux and Cygwin 2026-04-30 13:06:27 +02:00
Holger Vogt 8e9c5fb84a link to download added 2026-04-30 13:06:27 +02:00
Holger Vogt efe634cd71 typo 2026-04-30 13:06:27 +02:00
Holger Vogt 58d7739334 renamed from REAME.wav 2026-04-30 13:06:27 +02:00
Holger Vogt 63e7bd665e rename 2026-04-30 13:06:27 +02:00
Holger Vogt 07e61044c1 short intro
more to follow
2026-04-30 13:06:26 +02:00
Holger Vogt ab32d47860 replace exit() by controlled_exit() 2026-04-30 13:06:26 +02:00
Holger Vogt 93dbc846a3 declare functions and variables static, if so 2026-04-30 13:06:26 +02:00
Holger Vogt c1a35dbb92 reformat vsjack.c 2026-04-30 13:06:26 +02:00
Holger Vogt f6c78d8e9e Use the current method to set the coefficients 2026-04-30 13:06:26 +02:00
Holger Vogt 3d82891a87 reformat, set better error message for src_process() 2026-04-30 13:06:26 +02:00
Holger Vogt feb89e07dc add progress report when entering wav output stage 2026-04-30 13:06:26 +02:00
Holger Vogt 8c157b887e add commands sndprint, sndparam with
associated functions com_sndprint and com_sndparam
2026-04-30 13:06:25 +02:00
Holger Vogt fd254d7620 add dotcards .sndparam and .sndprint 2026-04-30 13:06:25 +02:00
Holger Vogt 80b93edfe5 ngspice.h and controlled_exit() instead of exit() 2026-04-30 13:06:25 +02:00
Holger Vogt 9fad8e3934 add sound capability to vsrc
see https://sourceforge.net/p/ngspice/patches/13/
2026-04-30 13:06:25 +02:00
Holger Vogt e1e0d08ad5 add files sndprint, vsjack 2026-04-30 13:06:25 +02:00
Holger Vogt d20315309f Do not replace GND by 0 f if GND is used inside of the subcircuit
and is referenced on the .subckt line, and ps is set.
This will allow using this subcircuit with non-zero reference
voltage.
2026-04-30 11:26:17 +02:00
Holger Vogt 62440272a4 Add non-nqs PSP model as well. 2026-04-30 11:22:08 +02:00
Holger Vogt 99a088df2d Tiny update 2026-04-30 11:21:32 +02:00
Holger Vogt b8e595a0e7 cosmetics 2026-04-29 13:34:43 +02:00
Holger Vogt 2a246632bb Add instance parameters td anr to the ISRC pwl source,
like has been available with voltage source VSRC.
2026-04-29 13:34:22 +02:00
Holger Vogt a0af7065a8 Add internal plotting via command
plot  n_one clk n_zero msb lsb digitop
2026-04-29 13:03:12 +02:00
Holger Vogt 51ebf841ac Make the memory printout more portable and readable.
Avoid integers, uses doubles.
2026-04-28 20:17:01 +02:00
Holger Vogt cb1a29b8c0 If newcompat.ki is enabled, allow /gnd and /0 (local ground symbols
in KiCad and replace them by true ngspice ground 0 .
2026-04-28 16:19:12 +02:00
Holger Vogt 9ef52c10b9 newcompat.ki has already been set in sharedspice.c 2026-04-28 16:17:35 +02:00
Holger Vogt eb751c5767 Add a function get_calling_process_nameto retrieve
the name of the calling process.
Use this function to identify Eeschema as caller for
automatically setting the compatibility flag ki.
2026-04-28 14:35:09 +02:00
Holger Vogt 5333bf658c Use updated eng() to print frequency with k, M, G prefixes. 2026-04-28 11:51:55 +02:00
Holger Vogt 7cf526ce4c Update memory check:
Only for WINDOWS baile out if requested memory is larger than existing.
For other OSs issue a warning, but then move on.
2026-04-28 11:50:46 +02:00
Holger Vogt 2c461c4441 Update the eng() function.
Allow outputting bytes in multiples of 1024.
Reformatting of file.
2026-04-28 11:49:13 +02:00
Holger Vogt b00d8daf58 In case of error allow portable printing of 64bit integers 2026-04-28 11:43:27 +02:00
Holger Vogt 9007ffab23 Enable printing outputs with engineering exponents 2026-04-26 12:08:08 +02:00
Holger Vogt be9d1df1d2 Improve error message 2026-04-25 17:17:09 +02:00
Holger Vogt 7e2056462c Example for small signal noise in code model OTA 2026-04-25 17:16:50 +02:00