Diferencia entre revisiones de «Taller de distorsión»
| Línea 198: | Línea 198: | ||
==Archivo SPICE (wav_in.cir)== | ==Archivo SPICE (wav_in.cir)== | ||
Esta simulación consume el contenido de un archivo se llama [https://cloud.undernet.uy/s/FqfqEwxw7tsaHRy clean.wav]. | |||
Genera un archivo se llama out.wav. | |||
Consulte en el [https://cloud.undernet.uy/s/mnjZEiEcPYB99NL manual de Ngspice] | |||
* 8.2.9 Filesource (PWL sourced from file) | |||
* 8.1 Code Model Element | |||
* 8.1.1 %v represents a single-ended voltage port | |||
* 8.1.1 Square brackets ([ ]) are used to enclose vector input nodes. | |||
* 13.5.78 General Form: Shell: Call the command interpreter | |||
* 13.5.56 General Form: Pre_<command>: execute commands prior to parsing the circuit | |||
<pre> | <pre> | ||
.title wave input | .title wave input | ||
a1 %v([in]) filesrc | a1 %v([in]) filesrc | ||
| Línea 218: | Línea 223: | ||
.control | .control | ||
pre_shell python3 wavtospice.py clean.wav in.dat | pre_shell python3 wavtospice.py clean.wav in.dat | ||
tran 0.02m 10 | tran 0.02m 10 | ||