• WANTED: Happy members who like to discuss audio and other topics related to our interest. Desire to learn and share knowledge of science required as is 20 years of participation in forums (not all true). Come here to have fun, be ready to be teased and not take online life too seriously. We now measure and review equipment for free! Click here for details.

Beta Test: DISTORT - audibility of distortions

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
#1
DeltaWave beta-test was a huge success, thanks to all of you! This new beta-test is again, only for the brave and the curious :)

Introducing DISTORT - free software designed to help determine the audibility thresholds of various audio distortions with your own equipment, at your own pace, with your own music. Some basic instructions and installer download are available on the Distort web page:

https://distortaudio.org

Just like DeltaWave, DISTORT runs on 64-bit Windows and likes lots of memory to process larger files and faster CPU, if you like a faster response.

The basic idea is to shape the desired harmonic and noise floor distortion and then to apply it to any piece of recorded music. You can play the distorted file directly, using the play button, or save it as a 32-bit WAV and play it using your preferred player software. See if you can spot 1% THD!

My hope is that DISTORT can help answer some burning audio questions and help to dispel some persistent audio myths:
  • Is SINAD of 110dB audible?
  • Is THD below 1% audible?
  • Do even harmonics sound better than odd?
  • Do higher-order harmonics sound less pleasant?
  • Does SET distortion really sound good?
  • At what level does the noise floor or the mains frequency become audible?
  • What kind of music is improved by lower THD? Even harmonics? Lower noise floor?
  • etc., etc., etc.
My plan is to build more distortion generators into DISTORT over time, from different filter types to jitter, to variable group delay and some others. All with the same goal in mind: to determine at what levels these distortions become audible. Any suggestions on which ones you'd like to see first are welcome.

If you discover an error or a crash, a short description of what you were doing, a screen shot, and/or a log file (available from Help->Logging->View Log menu) would be very helpful. Please give DISTORT at try, and as always, I welcome all feedback and suggestions!

1575126522346.png
 

RayDunzl

Major Contributor
Central Scrutinizer
Joined
Mar 9, 2016
Messages
9,052
Likes
6,911
Location
Riverview FL
#2
1575135392760.png


1575135436552.png


2019-11-30 12:33:58.7234|INFO|Wave.DistortForm|Distort 1.0.5.0 starting up
2019-11-30 12:33:58.8054|INFO|Wave.DistortForm|Adding driver: [ASIO] ASIO4ALL v2
2019-11-30 12:33:58.8234|INFO|Wave.DistortForm|Adding driver: [ASIO] Focusrite USB ASIO
2019-11-30 12:33:58.8234|INFO|Wave.DistortForm|Adding driver: [ASIO] miniDSP ASIO Driver
2019-11-30 12:33:58.8384|INFO|Wave.DistortForm|Adding driver: [ASIO] Realtek ASIO
2019-11-30 12:33:58.8384|INFO|Wave.DistortForm|Adding driver: [ASIO] Topping USB Audio Device
2019-11-30 12:33:58.8504|INFO|Wave.DistortForm|Adding driver: [ASIO] UMC ASIO Driver
2019-11-30 12:33:58.9194|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{216185b8-2335-4f1f-b459-d2716406d01c} | [WASAPI] Speakers (miniDSP 2x4n) 44100/32
2019-11-30 12:33:58.9774|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{5ac7e82f-1b40-4a3d-aa6c-bdf8bf2d454c} | [WASAPI] Speakers (Benchmark DAC2 USB Audio 2.0) 44100/32
2019-11-30 12:33:59.0304|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{803cf689-3e9c-4232-a589-fc59251501be} | [WASAPI] Speakers (DTS PlayFi Audio Renderer) 44100/32
2019-11-30 12:33:59.0874|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{88942f48-aa4e-44ca-827c-d62dd4b19de0} | [WASAPI] Speakers (TOPPING USB DAC) 96000/32
2019-11-30 12:33:59.1404|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{bcd5e846-fe27-49bd-88bc-a3bc0617209f} | [WASAPI] Focusrite USB (Focusrite USB Audio) 44100/32
2019-11-30 12:33:59.2614|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146} | [WASAPI] Speakers (Realtek High Definition Audio) 44100/32
2019-11-30 12:33:59.2614|INFO|Wave.DistortForm|Current driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146}
2019-11-30 12:33:59.2804|INFO|Wave.DistortForm|Adding driver: [ASIO] ASIO4ALL v2
2019-11-30 12:33:59.2804|INFO|Wave.DistortForm|Adding driver: [ASIO] Focusrite USB ASIO
2019-11-30 12:33:59.2964|INFO|Wave.DistortForm|Adding driver: [ASIO] miniDSP ASIO Driver
2019-11-30 12:33:59.3104|INFO|Wave.DistortForm|Adding driver: [ASIO] Realtek ASIO
2019-11-30 12:33:59.3274|INFO|Wave.DistortForm|Adding driver: [ASIO] Topping USB Audio Device
2019-11-30 12:33:59.3334|INFO|Wave.DistortForm|Adding driver: [ASIO] UMC ASIO Driver
2019-11-30 12:33:59.4044|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{216185b8-2335-4f1f-b459-d2716406d01c} | [WASAPI] Speakers (miniDSP 2x4n) 44100/32
2019-11-30 12:33:59.4624|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{5ac7e82f-1b40-4a3d-aa6c-bdf8bf2d454c} | [WASAPI] Speakers (Benchmark DAC2 USB Audio 2.0) 44100/32
2019-11-30 12:33:59.5154|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{803cf689-3e9c-4232-a589-fc59251501be} | [WASAPI] Speakers (DTS PlayFi Audio Renderer) 44100/32
2019-11-30 12:33:59.5654|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{88942f48-aa4e-44ca-827c-d62dd4b19de0} | [WASAPI] Speakers (TOPPING USB DAC) 96000/32
2019-11-30 12:33:59.6294|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{bcd5e846-fe27-49bd-88bc-a3bc0617209f} | [WASAPI] Focusrite USB (Focusrite USB Audio) 44100/32
2019-11-30 12:33:59.7484|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146} | [WASAPI] Speakers (Realtek High Definition Audio) 44100/32
2019-11-30 12:33:59.7484|INFO|Wave.DistortForm|Current driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146}
2019-11-30 12:34:00.4414|ERROR|Wave.SerializeObj|Error Deserializing C:\ProgramData\Distort\_DistortDefault.dwr
2019-11-30 12:34:03.3571|INFO|Wave.DistortForm|---Measurements (for a simple sine-wave only)---

2019-11-30 12:34:05.8346|INFO|Wave.DistortForm|Comparison THD = -163.91dB
2019-11-30 12:34:05.8346|INFO|Wave.DistortForm| H1 (1000Hz) = -6.24dB
2019-11-30 12:35:25.4426|INFO|Wave.DistortForm|Performing raw processing only -- all matching turned off
2019-11-30 12:35:25.4457|INFO|Wave.DistortForm|ProcessAll
2019-11-30 12:35:25.7666|INFO|Wave.DistortForm|Distort v1.0.5, 2019-11-30T12:35:25.7657305-05:00
2019-11-30 12:35:25.7666|INFO|Wave.DistortForm|Reference: 01 Track01.wav[L] 17816400 samples 44100Hz 16bits, stereo, MD5=00
2019-11-30 12:35:25.7666|INFO|Wave.DistortForm|Settings:
Gain:True, Remove DC:True
Non-linear Gain EQ:False Non-linear Phase EQ: False
EQ FFT Size:65536, EQ Frequency Cut: 0Hz - 0Hz, EQ Threshold: -160dB
Correct Drift:True, Precision:30
Non-Linear drift Correction:False
Upsample:False, Window:Hann
Spectrum Window:Kaiser, Spectrum Size:65536
Spectrogram Window:Hann, Spectrogram Size:4096, Spectrogram Steps:2048
Dither:False
Trim Silence:False

2019-11-30 12:35:25.7856|ERROR|Wave.DistortForm|Stopped!
at Wave.DistortForm.ProcessAll(Double[] L, Double[] L1, Int32 freq, Int32 freq1, Int32 freq2, Int32 bits1, Int32 bits2, Boolean bMatch, Boolean bLoadOnly, Boolean bApplyManual, Boolean bUpdateCharts) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 807
2019-11-30 12:35:25.7867|INFO|Wave.DistortForm|Stopped! Files loaded
2019-11-30 12:35:25.7867|INFO|Wave.DistortForm|Signature: 9eee91b044a075a28dbf6106f15b6bf9
2019-11-30 12:35:33.4726|ERROR|Wave.Program|Unhandled thread exception
at Wave.DistortForm.PlayAudio2(PlotView p, Double[] L1, Double[] L2, Int32 freq, Int32 idx, BlendType blend, Func`2 amp) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2659
at Wave.DistortForm.pbPlayRef_Click(Object sender, EventArgs e) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2929
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2019-11-30 12:36:44.5630|ERROR|Wave.Program|Unhandled thread exception
at Wave.DistortForm.PlayAudio2(PlotView p, Double[] L1, Double[] L2, Int32 freq, Int32 idx, BlendType blend, Func`2 amp) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2659
at Wave.DistortForm.pbPlayRef_Click(Object sender, EventArgs e) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2929
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2019-11-30 12:38:34.4417|ERROR|Wave.Program|Unhandled thread exception
at Wave.DistortForm.PlayAudio2(PlotView p, Double[] L1, Double[] L2, Int32 freq, Int32 idx, BlendType blend, Func`2 amp) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2659
at Wave.DistortForm.pbPlayRef_Click(Object sender, EventArgs e) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2929
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 

RayDunzl

Major Contributor
Central Scrutinizer
Joined
Mar 9, 2016
Messages
9,052
Likes
6,911
Location
Riverview FL
#4
Restart the app and it worked...
 

Blumlein 88

Major Contributor
Forum Donor
Joined
Feb 23, 2016
Messages
8,780
Likes
11,184
#5
I just tried version .5 and it worked okay for me.
Nice work. Can it generate IMD or images due to poor filtering?
Non-linear transfer functions create IMD, so the same mechanism that alters THD will cause IMD.
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #7
View attachment 40875

View attachment 40876

2019-11-30 12:33:58.7234|INFO|Wave.DistortForm|Distort 1.0.5.0 starting up
2019-11-30 12:33:58.8054|INFO|Wave.DistortForm|Adding driver: [ASIO] ASIO4ALL v2
2019-11-30 12:33:58.8234|INFO|Wave.DistortForm|Adding driver: [ASIO] Focusrite USB ASIO
2019-11-30 12:33:58.8234|INFO|Wave.DistortForm|Adding driver: [ASIO] miniDSP ASIO Driver
2019-11-30 12:33:58.8384|INFO|Wave.DistortForm|Adding driver: [ASIO] Realtek ASIO
2019-11-30 12:33:58.8384|INFO|Wave.DistortForm|Adding driver: [ASIO] Topping USB Audio Device
2019-11-30 12:33:58.8504|INFO|Wave.DistortForm|Adding driver: [ASIO] UMC ASIO Driver
2019-11-30 12:33:58.9194|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{216185b8-2335-4f1f-b459-d2716406d01c} | [WASAPI] Speakers (miniDSP 2x4n) 44100/32
2019-11-30 12:33:58.9774|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{5ac7e82f-1b40-4a3d-aa6c-bdf8bf2d454c} | [WASAPI] Speakers (Benchmark DAC2 USB Audio 2.0) 44100/32
2019-11-30 12:33:59.0304|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{803cf689-3e9c-4232-a589-fc59251501be} | [WASAPI] Speakers (DTS PlayFi Audio Renderer) 44100/32
2019-11-30 12:33:59.0874|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{88942f48-aa4e-44ca-827c-d62dd4b19de0} | [WASAPI] Speakers (TOPPING USB DAC) 96000/32
2019-11-30 12:33:59.1404|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{bcd5e846-fe27-49bd-88bc-a3bc0617209f} | [WASAPI] Focusrite USB (Focusrite USB Audio) 44100/32
2019-11-30 12:33:59.2614|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146} | [WASAPI] Speakers (Realtek High Definition Audio) 44100/32
2019-11-30 12:33:59.2614|INFO|Wave.DistortForm|Current driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146}
2019-11-30 12:33:59.2804|INFO|Wave.DistortForm|Adding driver: [ASIO] ASIO4ALL v2
2019-11-30 12:33:59.2804|INFO|Wave.DistortForm|Adding driver: [ASIO] Focusrite USB ASIO
2019-11-30 12:33:59.2964|INFO|Wave.DistortForm|Adding driver: [ASIO] miniDSP ASIO Driver
2019-11-30 12:33:59.3104|INFO|Wave.DistortForm|Adding driver: [ASIO] Realtek ASIO
2019-11-30 12:33:59.3274|INFO|Wave.DistortForm|Adding driver: [ASIO] Topping USB Audio Device
2019-11-30 12:33:59.3334|INFO|Wave.DistortForm|Adding driver: [ASIO] UMC ASIO Driver
2019-11-30 12:33:59.4044|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{216185b8-2335-4f1f-b459-d2716406d01c} | [WASAPI] Speakers (miniDSP 2x4n) 44100/32
2019-11-30 12:33:59.4624|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{5ac7e82f-1b40-4a3d-aa6c-bdf8bf2d454c} | [WASAPI] Speakers (Benchmark DAC2 USB Audio 2.0) 44100/32
2019-11-30 12:33:59.5154|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{803cf689-3e9c-4232-a589-fc59251501be} | [WASAPI] Speakers (DTS PlayFi Audio Renderer) 44100/32
2019-11-30 12:33:59.5654|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{88942f48-aa4e-44ca-827c-d62dd4b19de0} | [WASAPI] Speakers (TOPPING USB DAC) 96000/32
2019-11-30 12:33:59.6294|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{bcd5e846-fe27-49bd-88bc-a3bc0617209f} | [WASAPI] Focusrite USB (Focusrite USB Audio) 44100/32
2019-11-30 12:33:59.7484|INFO|Wave.DistortForm|Adding driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146} | [WASAPI] Speakers (Realtek High Definition Audio) 44100/32
2019-11-30 12:33:59.7484|INFO|Wave.DistortForm|Current driver: [WASAPI]{0.0.0.00000000}.{c1bdb032-6c1e-4a31-af55-89fe26e41146}
2019-11-30 12:34:00.4414|ERROR|Wave.SerializeObj|Error Deserializing C:\ProgramData\Distort\_DistortDefault.dwr
2019-11-30 12:34:03.3571|INFO|Wave.DistortForm|---Measurements (for a simple sine-wave only)---

2019-11-30 12:34:05.8346|INFO|Wave.DistortForm|Comparison THD = -163.91dB
2019-11-30 12:34:05.8346|INFO|Wave.DistortForm| H1 (1000Hz) = -6.24dB
2019-11-30 12:35:25.4426|INFO|Wave.DistortForm|Performing raw processing only -- all matching turned off
2019-11-30 12:35:25.4457|INFO|Wave.DistortForm|ProcessAll
2019-11-30 12:35:25.7666|INFO|Wave.DistortForm|Distort v1.0.5, 2019-11-30T12:35:25.7657305-05:00
2019-11-30 12:35:25.7666|INFO|Wave.DistortForm|Reference: 01 Track01.wav[L] 17816400 samples 44100Hz 16bits, stereo, MD5=00
2019-11-30 12:35:25.7666|INFO|Wave.DistortForm|Settings:
Gain:True, Remove DC:True
Non-linear Gain EQ:False Non-linear Phase EQ: False
EQ FFT Size:65536, EQ Frequency Cut: 0Hz - 0Hz, EQ Threshold: -160dB
Correct Drift:True, Precision:30
Non-Linear drift Correction:False
Upsample:False, Window:Hann
Spectrum Window:Kaiser, Spectrum Size:65536
Spectrogram Window:Hann, Spectrogram Size:4096, Spectrogram Steps:2048
Dither:False
Trim Silence:False

2019-11-30 12:35:25.7856|ERROR|Wave.DistortForm|Stopped!
at Wave.DistortForm.ProcessAll(Double[] L, Double[] L1, Int32 freq, Int32 freq1, Int32 freq2, Int32 bits1, Int32 bits2, Boolean bMatch, Boolean bLoadOnly, Boolean bApplyManual, Boolean bUpdateCharts) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 807
2019-11-30 12:35:25.7867|INFO|Wave.DistortForm|Stopped! Files loaded
2019-11-30 12:35:25.7867|INFO|Wave.DistortForm|Signature: 9eee91b044a075a28dbf6106f15b6bf9
2019-11-30 12:35:33.4726|ERROR|Wave.Program|Unhandled thread exception
at Wave.DistortForm.PlayAudio2(PlotView p, Double[] L1, Double[] L2, Int32 freq, Int32 idx, BlendType blend, Func`2 amp) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2659
at Wave.DistortForm.pbPlayRef_Click(Object sender, EventArgs e) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2929
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2019-11-30 12:36:44.5630|ERROR|Wave.Program|Unhandled thread exception
at Wave.DistortForm.PlayAudio2(PlotView p, Double[] L1, Double[] L2, Int32 freq, Int32 idx, BlendType blend, Func`2 amp) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2659
at Wave.DistortForm.pbPlayRef_Click(Object sender, EventArgs e) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2929
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2019-11-30 12:38:34.4417|ERROR|Wave.Program|Unhandled thread exception
at Wave.DistortForm.PlayAudio2(PlotView p, Double[] L1, Double[] L2, Int32 freq, Int32 idx, BlendType blend, Func`2 amp) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2659
at Wave.DistortForm.pbPlayRef_Click(Object sender, EventArgs e) in C:\Users\ypa\Documents\Visual Studio 2015\Projects\Distort\Wave\DistortForm.cs:line 2929
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Looks like an issue with the audio device refusing to play. Is the sampling rate/bit rate of the file matching something supported by this device? DISTORT will currently not resample audio to play it.
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #8
Code:
NET::ERR_CERT_COMMON_NAME_INVALID
I suggest you get a SSL cert vom letsencrypt.
It's actually just a redirect to a site with a valid cert. I'll create a separate website for the domain, but for now I thought I could host it on the the same site as DeltaWave. You can try going there directly:

https://deltaw.org/get_distorted.html
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #9
I just tried version .5 and it worked okay for me.

Non-linear transfer functions create IMD, so the same mechanism that alters THD will cause IMD.
That's correct. IMD is the result of the non-linear transfer function when applied to audio with more than single tone. With DISTORT you are applying this to a complex music file, so there's plenty of IMD and THD in that mix :)
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #10
Something that's now possible with DISTORT is to reproduce the effect of the harmonic distortion of many of the on-line measured devices without access the physical device.

For example, a while back I measured a hybrid tube/SS amp. The measurement was posted here:

Took me a minute to program similar distortion in DISTORT:

1575141320024.png


Now that it's programmed, anyone can download it and apply the same distortion to their own music. I saved the settings in a file that you can download and open from Distort's File->Load Settings... menu. The file is attached to this post, so you can play with it.

Assuming I correctly programmed various harmonic levels, these settings should make the file sound very similar to what I would hear coming out of the physical device... Let me know if you can hear the effect of the tube :)
 

Attachments

digitalfrost

Senior Member
Forum Donor
Joined
Jul 22, 2018
Messages
346
Likes
434
Location
Palatinate, Germany
#11
Trying to a play a file, format 32/44100 is not supported, try to resample to 32/48000? Yes, then format is not supported. It should be 24/48000. Are you not using DirectSound? Then you wouldn't need to worry about resampling.
 

pozz

Machine
Forum Donor
Editor
Joined
May 21, 2019
Messages
1,623
Likes
2,342
#12
I just tried version .5 and it worked okay for me.

Non-linear transfer functions create IMD, so the same mechanism that alters THD will cause IMD.
I was more referring to the program's ability to generate two-tone IMD. @pkane?
 

maty

Major Contributor
Joined
Dec 12, 2017
Messages
3,394
Likes
1,976
Location
Tarragona (Spain)
#13
Last edited:
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #15
I was more referring to the program's ability to generate two-tone IMD. @pkane?
I did that when @RayDunzl wanted to see two or three tone result. I'll put an option to do this in the next version. I can even do a 32-tone display :) Remember that you can feed any signal into DISTORT. If you have a WAV file that has the two test tones, you can use it, just like you can use any other recording.
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #16
Trying to a play a file, format 32/44100 is not supported, try to resample to 32/48000? Yes, then format is not supported. It should be 24/48000. Are you not using DirectSound? Then you wouldn't need to worry about resampling.
No, it's using WASAPI or ASIO. So you are saying the supported format is 24/48k but it's not working? Let me see if I can figure out why.
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #18

DDF

Senior Member
Joined
Dec 31, 2018
Messages
415
Likes
510
#19
Great work. Just a "next step" suggestion, it would be very interesting to be able to alter phase of the non linear components

Double blind audition studies in the journals show that distortion audibility has a dependence on the waveform envelope shape, with distortion components peaking out from the envelope if the phase relationship supports.
 
OP
pkane

pkane

Major Contributor
Forum Donor
Joined
Aug 18, 2017
Messages
1,321
Likes
1,932
Location
North-East
Thread Starter #20
Great work. Just a "next step" suggestion, it would be very interesting to be able to alter phase of the non linear components

Double blind audition studies in the journals show that distortion audibility has a dependence on the waveform envelope shape, with distortion components peaking out from the envelope if the phase relationship supports.
Do you have any good references for these studies? Papers, results, discussions? I can certainly measure phase of each harmonic. Adjusting it using the transfer function will require some research.
 

Similar threads

Top Bottom