View Single Post
Old 07-10-2012, 08:14 AM   #66
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
Okay, if I replace the sine function with a square function (x*x), would it then output a square wave instead of a sine wave?
You can make any .wav file for play-back (including a square wave) with LTspice (or any SPICE-3 program) with the .wave directive, as in:
.wave "path\to\outputfile.wav" 16 44100 NODE
Where "NODE" is the point in the circuit you want to record voltage changes as the content of the .wav file.

Combine being able to play whatever is generated by any sort of circuit with being able to define your own zero distortion (ideal) components ..
Mind boggling possibilities.

I posted the Custom Component HowTo yesterday:
http://knetconnect.com/ltspice/CustomComponents.html
That and other useful links can be found in the top post of the "Kindle Charger" thread.
knc1 is offline   Reply With Quote