Experimental setup for KiCad/ngspice supporting *.wav audio files

This is a project under development: enable *.wav files as input and output of KiCad/ngspice to simulate sound file input and output of electronic circuits.



The zipped project:
GUITFUZZ.7z (473.3 KB)

This is experimental, as it requires a special version of ngspice-43, which supports *.wav input/output. In the project folder (*.7z file from above) you will find a file Install_ngspice_for_KiCad.txt which gives some hints how to (temporarily) install the special ngspice-43 for KiCad 8.0.4 in MS Windows. This is what I am using myself.

There is also a file Install-Ubuntu.txt to tentatively do this in Ubuntu (not yet tested myself). macOS might be possible, but needs to be set up.

To run this project, expand it into a directory of your choice. Open the Eeschema file. Edit the two lines which contain absolute file paths (see the circuit diagram) by entering your project installation path (this will be no longer necessary in KiCad 8.99). And then run the simulation. An input file gits.wav is provided (3 s of a guitar sound). The output file git-fuzz-ki.wav contains the input and its fuzzed version. Listen to it e.g. with Audacity.

The *.wav interface will be made available probably in ngspice-44.

14 Likes

This is a very nice new feature! Thanks for sharing the demo.

This topic was automatically closed after 90 days. New replies are no longer allowed.