sine wave with 1% residual distortion - diyAudio
Go Back   Home > Forums > Source & Line > Digital Source

Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 4th April 2007, 09:28 PM   #1
diyAudio Member
 
Bernhard's Avatar
 
Join Date: Apr 2002
Location: Munich
Question sine wave with 1% residual distortion

I am looking for a 1 min wave file of a sine wave with 1% or 0,1% residual distortion to check for errors of a THD program.Click the image to open in full size.
  Reply With Quote
Old 4th April 2007, 11:46 PM   #2
diyAudio Member
 
Join Date: Aug 2003
Location: Santa Cruz, California
What frequency, sample rate? If you can live with a mono .wav file at 44.1 or 48 kHz, I think my email provider will let me post one to you (10 megabyte limit).
  Reply With Quote
Old 5th April 2007, 01:46 AM   #3
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
http://www.diyaudio.com/forums/showt...45#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
  Reply With Quote
Old 5th April 2007, 05:25 PM   #4
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
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
  Reply With Quote
Old 6th April 2007, 09:30 PM   #5
diyAudio Member
 
Bernhard's Avatar
 
Join Date: Apr 2002
Location: Munich
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.
  Reply With Quote
Old 7th April 2007, 03:15 PM   #6
dddac is offline dddac  Germany
diyAudio Member
 
Join Date: Jul 2003
Location: Wiesbaden
Quote:
Originally posted by Bernhard
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 ??????
__________________
www.dddac.com
Happy listening and building
  Reply With Quote
Old 7th April 2007, 04:50 PM   #7
diyAudio Member
 
Bernhard's Avatar
 
Join Date: Apr 2002
Location: Munich
Quote:
Originally posted by dddac



1% d2 d3 d4 d5 ??????

So that a distortion meter would show exactly 1%.
  Reply With Quote
Old 7th April 2007, 05:48 PM   #8
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
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;
Attached Files
File Type: zip output.zip (16.9 KB, 15 views)
  Reply With Quote
Old 7th April 2007, 05:50 PM   #9
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
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 ]
Attached Files
File Type: txt sindist12_wav.asc.txt (1.4 KB, 10 views)
  Reply With Quote
Old 10th April 2007, 08:55 AM   #10
diyAudio Member
 
Bernhard's Avatar
 
Join Date: Apr 2002
Location: Munich
Quote:
Originally posted by jcx

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.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sine Wave Generator with bulbs (Sine-lightenment) Rodeodave Everything Else 6 21st July 2008 12:19 PM
Sine wave - Square & Triangle wave generator using Transistors / OP-Amps lineup Solid State 20 9th October 2006 12:15 AM
Pure sine wave? PeteMcK Multi-Way 12 4th July 2004 06:31 AM


New To Site? Need Help?

All times are GMT. The time now is 01:39 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2