ssp
ssp designs and simulates guitar pedal circuits. It has two interfaces: a command line tool and a static web app. Both interfaces use the SpiceSharp engine.
The command line tool and its file formats are stable from version 1.0.0. See the releases.
Install
You need the .NET 10 SDK.
git clone https://github.com/4esv/ssp.git
cd ssp
dotnet pack src/Ssp.Cli -c Release -o artifacts
dotnet tool install --global ssp --add-source artifacts
ssp --version
The package contains the tool only. The models and the sample audio are in the repository. They are not in the package. Download one model into the same folder as your netlist:
curl -fsSLO https://raw.githubusercontent.com/4esv/ssp/main/models/opamp-tl072.cir
Write this line in your netlist:
.include opamp-tl072.cir
A .include path is relative to the netlist file. See Models.
If .NET comes from Homebrew, ssp can fail. The error starts with:
You must install or update .NET to run this application.
It also says Framework: 'Microsoft.NETCore.App', version '10.0.0'.
The system can find an old .NET in another folder first.
Set DOTNET_ROOT and run it again:
export DOTNET_ROOT="$(brew --prefix dotnet)/libexec"
Five-minute tour
Run these commands from the root of the repository.
Run a circuit.
ssp runprints the DC voltages, the small-signal (AC) frequency response, and the impedances. An AC analysis is linear, so it does not show clipping.ssp run circuits/fixtures/rc-lowpass.cirChange a part with
--set. Or run one part at several values withsweep.ssp run circuits/fixtures/rc-lowpass.cir --set R1=4k7 ssp sweep circuits/fixtures/rc-lowpass.cir --set R1=1k,4k7,10kRender audio through a circuit.
renderis a transient analysis. Use it to hear and measure clipping.ssp render circuits/library/fuzz-transistor-diode.cir --in src/Ssp.Web/Audio/riff.wav --out fuzz.wavOpen the web app at https://ssp.aesv.io. Draw a circuit, press Run, and play a clip through it.
Documentation
- Web app: draw a circuit, run it and play a clip through it.
- CLI reference: every command and option.
- File format: netlists, ssp directives and layout files.
- Models: the bundled device models and how to use them.
License
MIT. See LICENSE.