Time Domain output to Audacity for audio analysis

May be old news but developed a relatively "easy" way to analyze Time Domain simulations in Audacity for MacOS

Time Domain simulation, Time step = 1/sample rate

-Time step 20.8uS = 48kHz sample

-Time step 2.6uS = 384kHz sample

-Adjust Sim to keep output <= +/-1 (Or normalize in Excel later)

Export Plot CSV (saves as CircuitLabxxx.csv)

Open CircuitLabxxxx.csv with Excel

Click Convert

Delete rows 1,2,3 (extraneous data)

Copy column B (the audio data)

-ensure no data beyond +1.0 or -1.0

Open TextEdit

Create xxxx.txt doc

Paste Excel data

Save xxxx.txt

Open Audacity

Audacity >Preferences

-Project Sample Rate = 1/CL time step

Tools >Sample Data Import... (may need to enable with Plugin Manager)

Select a file

select xxxx.txt, click Open

Click Generate

A mono track should populate with audio the length of CircuitLab TDsim Stop time – Start time

by inven-ted
July 09, 2025

Post a Reply

Please sign in or create an account to comment.