Skip to content

Commit

Permalink
Release 1.101
Browse files Browse the repository at this point in the history
Signed-off-by: matt <[email protected]>
  • Loading branch information
QuantAsylum committed Sep 2, 2022
1 parent ea193b9 commit d41e905
Show file tree
Hide file tree
Showing 20 changed files with 104 additions and 63 deletions.
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/Distortion/ImdA01.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public class ImdA01 : AudioTestBase
[ObjectEditorAttribute(Index = 210, DisplayText = "Analyzer Output Level (dBV)", MinValue = -50, MaxValue = 6)]
public float AnalyzerOutputLevel = -10;

[ObjectEditorAttribute(Index = 215, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 215, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public ImdA01() : base()
{
Expand All @@ -41,7 +41,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);


// The RMS of two distinct but equal tones is 3 dBV above level of the tones
Expand Down
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/Distortion/ImdA03.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class ImdA03 : AudioTestBase
[ObjectEditorAttribute(Index = 215, DisplayText = "Load Impedance", ValidInts = new int[] { 8, 4 })]
public int ProgrammableLoadImpedance = 8;

[ObjectEditorAttribute(Index = 220, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 220, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };


public ImdA03() : base()
Expand All @@ -54,7 +54,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);

((IProgrammableLoad)Tm.TestClass).SetImpedance(ProgrammableLoadImpedance);

Expand Down
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/Distortion/ThdA01.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class ThdA01 : AudioTestBase
[ObjectEditorAttribute(Index = 240, DisplayText = "Maximum THD to Pass (dB)", MinValue = -150, MaxValue = 10, MustBeGreaterThanIndex = 230)]
public float MaximumOKTHD = -100;

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int InputRange = 6;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public ThdA01() : base()
{
Expand All @@ -43,7 +43,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(InputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);

((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen1(true, OutputLevel, Freq);
((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen2(false, OutputLevel, Freq);
Expand Down
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/Distortion/ThdA03.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class ThdA03 : AudioTestBase
[ObjectEditorAttribute(Index = 250, DisplayText = "Load Impedance (ohms)", ValidInts = new int[] { 8, 4 })]
public int ProgrammableLoadImpedance = 8;

[ObjectEditorAttribute(Index = 260, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int InputRange = 6;
[ObjectEditorAttribute(Index = 260, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public ThdA03() : base()
{
Expand All @@ -46,7 +46,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(InputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IProgrammableLoad)Tm.TestClass).SetImpedance(ProgrammableLoadImpedance);

if (LeftChannel == true && RightChannel == false)
Expand Down
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/Distortion/ThdB03.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class ThdB03 : AudioTestBase
[ObjectEditorAttribute(Index = 250, DisplayText = "Load Impedance (ohms)", ValidInts = new int[] { 8, 4 })]
public int LoadImpedance = 8;

[ObjectEditorAttribute(Index = 260, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int InputRange = 6;
[ObjectEditorAttribute(Index = 260, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public ThdB03() : base()
{
Expand All @@ -46,7 +46,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(InputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IProgrammableLoad)Tm.TestClass).SetImpedance(LoadImpedance);

((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen1(true, OutputLevel, Freq);
Expand Down
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/Distortion/ThdNA01.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class ThdNA01 : AudioTestBase
[ObjectEditorAttribute(Index = 240, DisplayText = "Maximum THD+N to Pass (dB)", MinValue = -130, MaxValue = 100, MustBeGreaterThanIndex = 230)]
public float MaximumOkThdN = -100;

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int InputRange = 6;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public ThdNA01() : base()
{
Expand All @@ -49,7 +49,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(InputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);

((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen1(true, OutputLevel, Freq);
((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen2(false, OutputLevel, Freq);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,8 @@ public class FreqResponseA01 : AudioTestBase
[ObjectEditorAttribute(Index = 215, DisplayText = "Mask File Name", IsFileName = true, MaxLength = 512)]
public string MaskFileName = "";

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;

//[ObjectEditorAttribute(Index = 270, DisplayText = "Display Y Max)", MinValue = -200, MaxValue = 200, MustBeGreaterThanIndex = 280)]
//public int YMax = 10;

//[ObjectEditorAttribute(Index = 280, DisplayText = "Display Y Min)", MinValue = -200, MaxValue = 200)]
//public int YMin = -20;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public FreqResponseA01() : base()
{
Expand All @@ -45,7 +39,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).DoFrAquisition(AnalyzerOutputLevel, 0, SmoothingDenominator);
((IAudioAnalyzer)Tm.TestClass).TestMask(MaskFileName, LeftChannel, RightChannel, false, out bool passLeft, out bool passRight, out _);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class FreqResponseA03 : AudioTestBase
[ObjectEditorAttribute(Index = 215, DisplayText = "Mask File Name", IsFileName = true, MaxLength = 512)]
public string MaskFileName = "";

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

[ObjectEditorAttribute(Index = 260, DisplayText = "Load Impedance (ohms)", ValidInts = new int[] { 8, 4 })]
public int ProgrammableLoadImpedance = 8;
Expand All @@ -43,7 +43,7 @@ public override void DoTest(string title, out TestResult tr)
((IProgrammableLoad)Tm.TestClass).SetImpedance(ProgrammableLoadImpedance);

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).DoFrAquisition(AnalyzerOutputLevel, 0, SmoothingDenominator);
((IAudioAnalyzer)Tm.TestClass).TestMask(MaskFileName, LeftChannel, RightChannel, false, out bool passLeft, out bool passRight, out _);

Expand Down
9 changes: 6 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/GainLevel/GainA01.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Com.QuantAsylum.Tractor.TestManagers;
using System;
using Tractor;
using Tractor.Com.QuantAsylum.Tractor.Tests;

namespace Com.QuantAsylum.Tractor.Tests.GainTests
Expand All @@ -25,15 +26,17 @@ public class GainA01 : AudioTestBase
[ObjectEditorAttribute(Index = 240, DisplayText = "Maximum Gain to Pass (dB)", MinValue = -100, MaxValue = 100, MustBeGreaterThanIndex = 230)]
public float MaximumPassGain = -9.5f;

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public GainA01() : base()
{
Name = this.GetType().Name;
_TestType = TestTypeEnum.LevelGain;
}



public override void DoTest(string title, out TestResult tr)
{
// Two channels
Expand All @@ -42,7 +45,7 @@ public override void DoTest(string title, out TestResult tr)
Tm.SetToDefaults();
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);

((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen1(true, AnalyzerOutputLevel, TestFrequency);
Expand Down
6 changes: 3 additions & 3 deletions Tractor/Com.QuantAsylum.Tractor.Tests/GainLevel/GainA03.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class GainA03 : AudioTestBase
[ObjectEditorAttribute(Index = 250, DisplayText = "Load Impedance (ohms)", ValidInts = new int[] { 8, 4 })]
public int ProgrammableLoadImpedance = 8;

[ObjectEditorAttribute(Index = 260, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 260, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

public GainA03() : base()
{
Expand All @@ -46,7 +46,7 @@ public override void DoTest(string title, out TestResult tr)
Tm.SetToDefaults();
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IProgrammableLoad)Tm.TestClass).SetImpedance(ProgrammableLoadImpedance);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class GainSorted3A01N : AudioTestBase
//[ObjectEditorAttribute(Index = 220, DisplayText = "Pre-analyzer Input Gain (dB)", MinValue = -100, MaxValue = 100)]
//public float ExternalAnalyzerInputGain = 0;

[ObjectEditorAttribute(Index = 225, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 225, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

//---------------

Expand Down Expand Up @@ -83,7 +83,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen1(true, AnalyzerOutputLevel, TestFrequency);
((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen2(false, AnalyzerOutputLevel, TestFrequency);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class GainSorted5A01N : AudioTestBase
//[ObjectEditorAttribute(Index = 220, DisplayText = "Pre-analyzer Input Gain (dB)", MinValue = -100, MaxValue = 100)]
//public float ExternalAnalyzerInputGain = 0;

[ObjectEditorAttribute(Index = 225, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 225, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

//---------------

Expand Down Expand Up @@ -111,7 +111,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen1(true, AnalyzerOutputLevel, TestFrequency);
((IAudioAnalyzer)Tm.TestClass).AudioGenSetGen2(false, AnalyzerOutputLevel, TestFrequency);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public class RmsLevelA01 : AudioTestBase
[ObjectEditorAttribute(Index = 240, DisplayText = "Minimum Level to Pass (dBV)", MinValue = -150, MaxValue = 0)]
public float MinimumPassLevel = -10.5f;

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

[ObjectEditorAttribute(Index = 260, DisplayText = "RMS Measurement Start (Hz)", MinValue = 10, MaxValue = 20000)]
public float StartFreq = 20;
Expand All @@ -39,7 +39,7 @@ public override void DoTest(string title, out TestResult tr)
Tm.SetToDefaults();
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);

// Disable generators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class RmsLevelA03 : AudioTestBase
[ObjectEditorAttribute(Index = 250, DisplayText = "Load Impedance (ohms)", ValidInts = new int[] { 8, 4 })]
public int ProgrammableLoadImpedance = 8;

[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range", ValidInts = new int[] { 6, 26 })]
public int AnalyzerInputRange = 6;
[ObjectEditorAttribute(Index = 250, DisplayText = "Analyzer Input Range")]
public AudioAnalyzerInputRanges AnalyzerInputRange = new AudioAnalyzerInputRanges() { InputRange = 6 };

[ObjectEditorAttribute(Index = 260, DisplayText = "RMS Measurement Start (Hz)", MinValue = 10, MaxValue = 20000)]
public float StartFreq = 20;
Expand All @@ -44,7 +44,7 @@ public override void DoTest(string title, out TestResult tr)
SetupBaseTests();

((IAudioAnalyzer)Tm.TestClass).AudioAnalyzerSetTitle(title);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange);
((IAudioAnalyzer)Tm.TestClass).SetInputRange(AnalyzerInputRange.InputRange);
((IProgrammableLoad)Tm.TestClass).SetImpedance(ProgrammableLoadImpedance);

// Disable generators
Expand Down
Loading

0 comments on commit d41e905

Please sign in to comment.