http://www.diyaudio.com/forums/showthread.php?postid=1061145#post1061145
just series connect another sine Vsouce with the harmonic frequency and level you want to use (in place of the "dither" Vsource in the example), look up the syntax for .wav output in LtSpice help and you can create stereo as well as other sample rates
just series connect another sine Vsouce with the harmonic frequency and level you want to use (in place of the "dither" Vsource in the example), look up the syntax for .wav output in LtSpice help and you can create stereo as well as other sample rates
if you try the LtSpice approach you should use an older version, the current april 3 V2.20j release has broken .wavefile input - but bug fixes come fast with LtSpice, hopelfully only a week
I think output is OK so you can still create .wav test files with the current version, you just can't view and fft them in LtSpice until the .wavfile read bug is fixed
.wav files with periodic content compress in .zip format by huge ratios - if anyone wanted to post some test files
I think output is OK so you can still create .wav test files with the current version, you just can't view and fft them in LtSpice until the .wavfile read bug is fixed
.wav files with periodic content compress in .zip format by huge ratios - if anyone wanted to post some test files
Bernhard said:I would be happy with a 1 minute, 1 kHz mono wave, 44,1 kHz sampling rate, 16 bit,
with 1% distortion
that I can burn on CD.
1% d2 d3 d4 d5 ??????
dddac said:
1% d2 d3 d4 d5 ??????
So that a distortion meter would show exactly 1%.
the zip should contain a 2 channel 16 bit 44.1K .wav
1st second 1 KHz -3 dB, no added distortion
left channel 3rd harmonic
1% 1-2sec,
2% 2-3sec,
3% 3-4sec,
4% 4-5sec,
5% 5-6sec;
right channel 1% distortion component
2 KHz 1-2sec,
3 KHz 2-3sec,
4 KHz 3-4sec,
5 KHz 4-5sec,
6 KHz 5-6sec;
1st second 1 KHz -3 dB, no added distortion
left channel 3rd harmonic
1% 1-2sec,
2% 2-3sec,
3% 3-4sec,
4% 4-5sec,
5% 5-6sec;
right channel 1% distortion component
2 KHz 1-2sec,
3 KHz 2-3sec,
4 KHz 3-4sec,
5 KHz 4-5sec,
6 KHz 5-6sec;
Attachments
and the LtSpice .asc used to write the test .wav
[ current LtSpice version works, wavefile input also works after I restarted my computer - must have corrupted the wav file somehow - however I am now having trouble with LtSpice' fft: 100mS record ok, 1 second gives slightly wrong magnitudes ]
[ current LtSpice version works, wavefile input also works after I restarted my computer - must have corrupted the wav file somehow - however I am now having trouble with LtSpice' fft: 100mS record ok, 1 second gives slightly wrong magnitudes ]
Attachments
jcx said:
1st second 1 KHz -3 dB, no added distortion
left channel 3rd harmonic
1% 1-2sec,
2% 2-3sec,
3% 3-4sec,
4% 4-5sec,
5% 5-6sec;
right channel 1% distortion component
2 KHz 1-2sec,
3 KHz 2-3sec,
4 KHz 3-4sec,
5 KHz 4-5sec,
6 KHz 5-6sec;
Thanks, could you please send me by email at least 30 sec of the 1% wave, I have no soundcard or software to make the file longer.
upped the time steps to 30 seconds each, includes .wav, .asc
runs better than 1/2 real time on my machine, big delays also when LtSpice tries to load data into waveform viewer
SwCad could be run in batch mode to skip waveform viewer
@192K zip was too big, used 7zip ( 31M wav=>24K .7z, not bad but you could say that the 31M is "encoded" in the 2K .asc file, just takes a little longer to extract )
http://www.7-zip.org/
and of course, diyAudio doesn't recognize .7z, so rename without .txt and open with 7zip
jcx said:the zip should contain a 2 channel 16 bit 44.1K .wav
1st second 1 KHz -3 dB, no added distortion
left channel 3rd harmonic
1% 1-2sec,
2% 2-3sec,
3% 3-4sec,
4% 4-5sec,
5% 5-6sec;
right channel 1% distortion component
2 KHz 1-2sec,
3 KHz 2-3sec,
4 KHz 3-4sec,
5 KHz 4-5sec,
6 KHz 5-6sec;
runs better than 1/2 real time on my machine, big delays also when LtSpice tries to load data into waveform viewer
SwCad could be run in batch mode to skip waveform viewer
@192K zip was too big, used 7zip ( 31M wav=>24K .7z, not bad but you could say that the 31M is "encoded" in the 2K .asc file, just takes a little longer to extract )
http://www.7-zip.org/
and of course, diyAudio doesn't recognize .7z, so rename without .txt and open with 7zip
Attachments
rt clik on filename and a dialog should open, select Rename
or select file (left clik filename or icon) and use <File> tool bar to get to Rename cmd, left clik 2nd time (wait some time not double clik) directly enters Rename mode
then you are able to edit the file name, left clik inside brackets containing the highlighted filename to get ordinary cursor with normal line edit behavior, <cr> or cliking outside brackets ends edit
ignore the warning/ clik OK/Yes when when you finish
or select file (left clik filename or icon) and use <File> tool bar to get to Rename cmd, left clik 2nd time (wait some time not double clik) directly enters Rename mode
then you are able to edit the file name, left clik inside brackets containing the highlighted filename to get ordinary cursor with normal line edit behavior, <cr> or cliking outside brackets ends edit
ignore the warning/ clik OK/Yes when when you finish
...got it now, problem was file extensions were not shown...
Thanks, nice files, give also good idea how sounds -40db of K2 to K6.
It shows 0,035% for the clean wave and 1,001% for K2, dropping to 0.99% for K6.
I increased sampling points x4 and it dropped down to 0,015% for the clean wave.
Still much 2 much, maybe more averaging could help.
Don't know how good was the guy who wrote the program, I understand maybe 50%.
Thanks, nice files, give also good idea how sounds -40db of K2 to K6.
It shows 0,035% for the clean wave and 1,001% for K2, dropping to 0.99% for K6.
I increased sampling points x4 and it dropped down to 0,015% for the clean wave.
Still much 2 much, maybe more averaging could help.
Don't know how good was the guy who wrote the program, I understand maybe 50%.
- Status
- This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
- Home
- Source & Line
- Digital Source
- sine wave with 1% residual distortion