AUDIO ANALYSIS
Overview
Proteus can let you hear the output from your circuits, provided the machine has sound hardware. The major component of this is the Audio graph. This is essentially the same as an Analogue graph except that after simulation, a Windows WAV file is generated from the time domain data and played through your sound device.
The WAV files can also be exported for use in other applications.
Method of Calculation
Audio analyses are performed in exactly the same way as for Transient Analysis except that after simulation, the data is re-sampled at one of the standard PC sampling rates (11025, 22050 or 44100Hz) then written out in WAV format using the standard Windows functions provided for this purpose. Finally the command is sent to play the WAV file to your audio hardware.
If the simulation produces no usable signal, Proteus reports that the output is null and no audio data has been created.
Using Audio Graphs
In the first instance, you need to set up your circuit as for a Transient Analysis except that you should use an Audio graph instead of an Analogue graph.
Playback Settings
The Edit Audio Analysis Graph dialogue form carries the usual Start time and Stop time fields, together with the following controls over playback.
Loop time is the length of audio to generate. If it is longer than the simulated interval, the simulated data is repeated until the loop time is filled. This is what makes short simulations useful: producing one second of audio by simulating 1ms and looping it is dramatically faster than simulating the circuit for a whole second.
Play mode decides which traces are heard, and relabels the two y-axes to match. Traces on the left axis are the input and traces on the right axis are the output.
- MONO plays every trace on the graph, averaged together into a single channel.
- INPUT plays only the left axis traces.
- OUTPUT plays only the right axis traces.
- STEREO produces a two channel file with the left axis traces on the left channel and the right axis traces on the right.
Sample Bits chooses 8 or 16 bit samples, and Sample Rate chooses 11025, 22050 or 44100Hz. The defaults are 16 bits at 22050Hz.
Lock Timestep? forces the simulator to take one timepoint per audio sample rather than choosing its own timesteps and resampling the result. This gives the most faithful audio, at the cost of a slower simulation.
The Audio group at the foot of the form carries two buttons. Play Audio replays the existing results without simulating again, and Export as WAV file writes them to a file of your choosing. The same replay is available from the schematic as Play Audio on the Graph menu, or CTRL+SPACE.
To listen to the audio output of a circuit:
Set up the circuit as for a Transient Analysis.
Add an Audio graph to the design and drag a probe from the output of the circuit onto it.
Choose start, stop and loop times to generate a waveform of reasonable length with the minimum of actual simulation. Creating one second of audio by analysing 1ms and looping it 1000 times is dramatically faster than analysing the circuit for the whole second.
Choose a sample resolution and rate to suit the nature of the signal you want to hear. Use 16 bit resolution unless you are creating big files and/or are short of disk space. Most PC sound speaker systems will not benefit much from 44.1kHz sampling.
Press the space bar to invoke PROSPICE.
Press CTRL+SPACE to replay the audio, without resimulating, if required.
You can also export audio data to a WAV file and then, if required, load that file back into another schematic through an audio generator. See Audio Generators.
See Also: