Commit Graph

9486 Commits

Author SHA1 Message Date
Linus Torvalds d0c297db4f Patch fixes bug in the original linear interpolation,
along with generating a proper "streaming" resampled output.
2026-04-05 14:06:00 +02:00
Holger Vogt 91e87c8899 provide correct path info 2026-04-05 14:06:00 +02:00
Holger Vogt fca9b078a8 Add wav to fftw version of shared ngspice 2026-04-05 14:05:59 +02:00
Holger Vogt d1ecb5942f Improve error messages.
Oversampling default is 4.
2026-04-05 14:05:59 +02:00
Holger Vogt 450ef9f411 Make types compatible, change from int to size_t 2026-04-05 14:05:59 +02:00
Holger Vogt 9fa4c4d7a4 Formatting
Replace tabs by spaces
2026-04-05 14:05:59 +02:00
Holger Vogt 85c4412584 Oversampling default is 1 2026-04-05 14:05:59 +02:00
Holger Vogt cf2784a6ce Install ngspice wav on Ubuntu 24.04 2026-04-05 14:05:59 +02:00
Holger Vogt ffc76a78d1 Examples for wav audio simulation. 2026-04-05 14:05:59 +02:00
Holger Vogt 967fc4daab Update to ngspice-43. 2026-04-05 14:05:58 +02:00
Holger Vogt 131802593b Use the most recent samplerate.dll from
https://github.com/libsndfile/libsamplerate/releases
2026-04-05 14:05:58 +02:00
Holger Vogt 1b3317e262 Remove source of memory errors: read and write beyond boundaries
caused segfaults.
2026-04-05 14:05:58 +02:00
Holger Vogt 1375e592a3 Enable most recent build of sndfile.dll from
https://github.com/libsndfile/libsndfile
2026-04-05 14:05:58 +02:00
Holger Vogt d67f5399d5 Just a small fix 2026-04-05 14:05:57 +02:00
Holger Vogt 10d1e4cc80 prevent a segfault when TSTOP less than TSTART in tran command 2026-04-05 14:05:57 +02:00
Holger Vogt 6f1d6ca779 allow other simulation types, e.g. ac
prevents crash
2026-04-05 14:05:57 +02:00
Holger Vogt b9cfab89cf Enable compilation of shared ngspice with wav support 2026-04-05 14:05:57 +02:00
Holger Vogt 42fba98572 Enable compiling with *.wav (audio) file support. 2026-04-05 14:05:57 +02:00
Holger Vogt dc6901b2b8 Enable standard search paths for *.wav file search. 2026-04-05 14:05:57 +02:00
Holger Vogt 5fa4d0185d add dot commands .sndprint, .sndparam in inp.c 2026-04-05 14:05:56 +02:00
Holger Vogt 57acba9c4e Formatting: tabs to spaces 2026-04-05 14:05:56 +02:00
Holger Vogt a182e57344 Remove unused 2026-04-05 14:05:56 +02:00
Holger Vogt 0534026e21 update to enable compiling for Linux and Cygwin 2026-04-05 14:05:56 +02:00
Holger Vogt 1d360f0dd1 link to download added 2026-04-05 14:05:56 +02:00
Holger Vogt 8346e9fb47 typo 2026-04-05 14:05:56 +02:00
Holger Vogt e55ea62c2b renamed from REAME.wav 2026-04-05 14:05:55 +02:00
Holger Vogt 7166fc1243 rename 2026-04-05 14:05:55 +02:00
Holger Vogt 5c68e8a2d4 short intro
more to follow
2026-04-05 14:05:55 +02:00
Holger Vogt d70efad370 replace exit() by controlled_exit() 2026-04-05 14:05:55 +02:00
Holger Vogt c637a4f776 declare functions and variables static, if so 2026-04-05 14:05:55 +02:00
Holger Vogt 4acb405d8a reformat vsjack.c 2026-04-05 14:05:55 +02:00
Holger Vogt 4a3e09be26 Use the current method to set the coefficients 2026-04-05 14:05:55 +02:00
Holger Vogt 3a1269519f reformat, set better error message for src_process() 2026-04-05 14:05:54 +02:00
Holger Vogt 38e68263af add progress report when entering wav output stage 2026-04-05 14:05:54 +02:00
Holger Vogt 3b6b10f452 add commands sndprint, sndparam with
associated functions com_sndprint and com_sndparam
2026-04-05 14:05:54 +02:00
Holger Vogt bc1d285679 add dotcards .sndparam and .sndprint 2026-04-05 14:05:54 +02:00
Holger Vogt 069429543d ngspice.h and controlled_exit() instead of exit() 2026-04-05 14:05:54 +02:00
Holger Vogt 8a6d98694e add sound capability to vsrc
see https://sourceforge.net/p/ngspice/patches/13/
2026-04-05 14:05:53 +02:00
Holger Vogt 6620f2b93e add files sndprint, vsjack 2026-04-05 14:05:53 +02:00
Holger Vogt 55189b01fe Remove obsolete adms branch 2026-04-04 15:25:06 +02:00
Holger Vogt 864ee815bc Update VSRC and ISRC pulse sources
Enable PW=0, improve 'incomplete' pulse specifications

TR negative or 0 --> TR = ckt->CKTstep
TF negative or 0 --> TF = ckt->CKTstep
if PW not given, but TR and TF --> PW = 0
PW < 0 --> PW = ckt->CKTfinalTime
PER <= 0 --> PER = ckt->CKTfinalTime
2026-04-04 15:23:01 +02:00
Holger Vogt 18cbaad36c Revert "V Pulse delivers erratic outputs, when not parameterized properly."
This reverts commit 7159d6aa4b.
2026-04-04 13:50:43 +02:00
Holger Vogt 5eb1b0a510 Revert "Move comment"
This reverts commit dd2a5fd062.
2026-04-04 13:50:36 +02:00
Brian Taylor 14b94b5f15 Corrections to voltage pulses. 2026-04-04 13:37:32 +02:00
Brian Taylor 38c49fee73 Fix the voltage pulse statements. 2026-04-04 13:37:16 +02:00
Giles Atkinson ae4a05158b Ugly fix for failing MacOS builds on github: move parse-binon.y to the top.
BUILT_SOURCES seems not to work.
2026-04-01 09:53:34 +01:00
Giles Atkinson 82c91abea4 Discard all XSPICE event data when using "-b -r", as there is no way
to access it.  An initial step for FR #105: "Esave + rawfile".
2026-04-01 07:35:20 +01:00
Giles Atkinson e42a9e6b5c Fix excessive forcing to lower-case in pure script files.
Add string comparisons as protected commands so they can be case-sensitive.
2026-04-01 07:35:20 +01:00
Giles Atkinson 3586cbcbea Fix crash when a "*ng_script_with_params" script is called
from a control section.
2026-04-01 07:35:20 +01:00
Giles Atkinson fe8193cdfb Improve S-parameter example: change node names to make plot clearer,
add port impedance parameters to subcircuit and simply string parameter.
2026-04-01 07:35:20 +01:00