Commit Graph

9310 Commits

Author SHA1 Message Date
Holger Vogt c331a2b4ac Oversampling default is 1 2025-09-10 11:57:15 +02:00
Holger Vogt 9b9b0a25dc Install ngspice wav on Ubuntu 24.04 2025-09-10 11:57:15 +02:00
Holger Vogt d3510667e5 Examples for wav audio simulation. 2025-09-10 11:57:15 +02:00
Holger Vogt a7184842af Update to ngspice-43. 2025-09-10 11:57:15 +02:00
Holger Vogt aa54da845c Use the most recent samplerate.dll from
https://github.com/libsndfile/libsamplerate/releases
2025-09-10 11:57:15 +02:00
Holger Vogt f9319bc6bd Remove source of memory errors: read and write beyond boundaries
caused segfaults.
2025-09-10 11:57:14 +02:00
Holger Vogt de6efc0d8e Enable most recent build of sndfile.dll from
https://github.com/libsndfile/libsndfile
2025-09-10 11:57:14 +02:00
Holger Vogt a32b5a70c0 Just a small fix 2025-09-10 11:57:14 +02:00
Holger Vogt 14642f7472 prevent a segfault when TSTOP less than TSTART in tran command 2025-09-10 11:57:14 +02:00
Holger Vogt d0dbc71280 allow other simulation types, e.g. ac
prevents crash
2025-09-10 11:57:14 +02:00
Holger Vogt 81a664128a Enable compilation of shared ngspice with wav support 2025-09-10 11:57:14 +02:00
Holger Vogt 031b6e7501 Enable compiling with *.wav (audio) file support. 2025-09-10 11:57:14 +02:00
Holger Vogt 67d7665a03 Enable standard search paths for *.wav file search. 2025-09-10 11:57:14 +02:00
Holger Vogt ece3a999ba add dot commands .sndprint, .sndparam in inp.c 2025-09-10 11:57:13 +02:00
Holger Vogt b22f9ad862 Formatting: tabs to spaces 2025-09-10 11:57:13 +02:00
Holger Vogt 5e18ffd38e Remove unused 2025-09-10 11:57:13 +02:00
Holger Vogt 8ae4b12b89 update to enable compiling for Linux and Cygwin 2025-09-10 11:57:13 +02:00
Holger Vogt 1c35fd3870 link to download added 2025-09-10 11:57:13 +02:00
Holger Vogt b6d6949b21 typo 2025-09-10 11:57:12 +02:00
Holger Vogt 6a89703fbb renamed from REAME.wav 2025-09-10 11:57:12 +02:00
Holger Vogt 1a0d2f52af rename 2025-09-10 11:57:12 +02:00
Holger Vogt e0141e29f0 short intro
more to follow
2025-09-10 11:57:12 +02:00
Holger Vogt e3b81a7031 replace exit() by controlled_exit() 2025-09-10 11:57:12 +02:00
Holger Vogt 1275854494 declare functions and variables static, if so 2025-09-10 11:57:12 +02:00
Holger Vogt c56ffb851b reformat vsjack.c 2025-09-10 11:57:12 +02:00
Holger Vogt 852f8b5259 Use the current method to set the coefficients 2025-09-10 11:57:12 +02:00
Holger Vogt 85c297914a reformat, set better error message for src_process() 2025-09-10 11:57:11 +02:00
Holger Vogt 1cb326f738 add progress report when entering wav output stage 2025-09-10 11:57:11 +02:00
Holger Vogt fbcf2d0195 add commands sndprint, sndparam with
associated functions com_sndprint and com_sndparam
2025-09-10 11:57:11 +02:00
Holger Vogt 479f45c56c add dotcards .sndparam and .sndprint 2025-09-10 11:57:11 +02:00
Holger Vogt 84f3e9fc9c ngspice.h and controlled_exit() instead of exit() 2025-09-10 11:57:11 +02:00
Holger Vogt 1c3fefa1f3 add sound capability to vsrc
see https://sourceforge.net/p/ngspice/patches/13/
2025-09-10 11:57:11 +02:00
Holger Vogt df6ba94ee6 add files sndprint, vsjack 2025-09-10 11:57:10 +02:00
Holger Vogt 724dc77b91 Prepare bug-fix release ngspice-45.2. 2025-09-05 23:59:35 +02:00
Holger Vogt 82c620304b Fixing bug 804.
Using function get_windows_canonical_path() may neglect the
ngspice file search sequence, as an absolute path is returned also
for relative input paths. ngspice however searches a file not only
relative to the current directory, as inforced by this
function, but for example also in the directory of the previous
input file.

So restrict this function to paths longer than MAX_PATH, which would fail
otherwise.
2025-09-05 23:59:05 +02:00
dwarning 86c78150b7 add KLU bindings for diode selfheating effect, bug #802 2025-08-31 15:16:05 +02:00
Holger Vogt dbb1db8b9d add tlines files to distribution 2025-08-29 23:55:36 +02:00
Holger Vogt d61a1e4090 Prepare for ngspice-45 2025-08-29 15:50:25 +02:00
Holger Vogt 86ea9fee8a Prepare for ngspice-45 2025-08-29 15:01:45 +02:00
Holger Vogt a2b3d7c7d2 Enhance comment. 2025-08-28 12:39:13 +02:00
Holger Vogt 7fc68c0c07 Adding .param SWSOA=1 right after the .lib entry during reading in
the libraries.
2025-08-28 12:39:01 +02:00
Holger Vogt b1f4f32b36 Prevent a segfault if cp_variablesubst return a nullptr.
Fixes bug-801
2025-08-28 12:16:22 +02:00
Holger Vogt 2185f82a28 typo 2025-08-28 12:16:11 +02:00
Holger Vogt bebf7efd8b Command completion is not supported, removed from 'help' 2025-08-28 12:15:55 +02:00
Holger Vogt c45d1e0974 Rename t to tn to avoid t shadowing the t from the function header
void cpmslineAnalyseDispersion (double W, double h, double s,
				   double t, double er, double Zle,
...
2025-08-28 12:15:40 +02:00
Vadim Kuznetsov 94740a3d2b Fixed warnings in cpmlin and mlin 2025-08-28 12:15:25 +02:00
Holger Vogt c5d6d78fc5 Add gcc warning -Wshadow 2025-08-28 12:15:13 +02:00
Brian Taylor 0e50efc1fa Add missing value in the last line.
FIXME: we need to check the input for having adequate columns
2025-08-28 12:14:50 +02:00
Holger Vogt 481e3e567b Update to filesource
Move tprev out of the loop to enable storing the previous time value.
Add some general warning message that an error might have occurred during
reading the time or data values from the data input file.
Allow empty lines in the data input file.
Guard early data values (TIME < time offset) against false reading.
Add some simple examples.
2025-08-11 18:45:21 +02:00
Holger Vogt 6496c5a8db Prepare for ngspice-45 2025-08-10 16:43:25 +02:00