BGC Tools
|
Manages calibration values and processes More...
Data Structures | |
struct | CalibrationPoint |
class | Keys |
Public Types | |
enum | Tone { Tone._250Hz = 0, Tone._500Hz, Tone._1000Hz, Tone._2000Hz, Tone._4000Hz, Tone._8000Hz, Tone.Noise, Tone.MAX } |
enum | Source { Source.Default = 0, Source.Custom, Source.Results, Source.InProgress, Source.MAX } |
Static Public Member Functions | |
static void | Initialize () |
static void | Serialize () |
static void | FinishCalibration () |
static void | InitiateCalibration (int[] testLevels) |
static void | SubmitCalibrationValue (int step, AudioChannel channel, double offset) |
static void | PushCalibrationResults () |
static void | DropCalibrationResults (Source source) |
static Source | GetSourceForVerificationPanel () |
static void | GetLevelOffset (double level, out double levelOffsetL, out double levelOffsetR, Source source=Source.Custom) |
static string | GetToneName (this Tone tone) |
static double | GetFrequency (this Tone tone) |
Static Private Member Functions | |
static void | DeserializeCalibration (JsonObject parsedValue) |
static JsonObject | SerializeCalibration () |
Static Private Attributes | |
static List< CalibrationPoint > | customCalibration = null |
static List< CalibrationPoint > | resultsCalibration = null |
static List< CalibrationPoint > | inProgressCalibration = null |
static readonly string | dataDir = "System" |
static readonly string | configFileName = "Calibration.json" |
static bool | initialized = false |
Manages calibration values and processes
Definition at line 13 of file Calibration.cs.
|
strong |
Enumerator | |
---|---|
Default | |
Custom | |
Results | |
InProgress | |
MAX |
Definition at line 36 of file Calibration.cs.
|
strong |
Enumerator | |
---|---|
_250Hz | |
_500Hz | |
_1000Hz | |
_2000Hz | |
_4000Hz | |
_8000Hz | |
Noise | |
MAX |
Definition at line 24 of file Calibration.cs.
|
inlinestaticprivate |
Definition at line 69 of file Calibration.cs.
References LightJson.JsonObject.Add(), LightJson.JsonArray.Count, BGC.Audio.Calibration.Keys.CustomCalibration, BGC.Audio.Calibration.Keys.LAdjustment, BGC.Audio.Calibration.Keys.Level, and BGC.Audio.Calibration.Keys.RAdjustment.
|
inlinestatic |
Definition at line 200 of file Calibration.cs.
|
inlinestatic |
Definition at line 118 of file Calibration.cs.
|
inlinestatic |
Definition at line 339 of file Calibration.cs.
|
inlinestatic |
Definition at line 238 of file Calibration.cs.
References BGC.Mathematics.GeneralMath.Lerp().
Referenced by BGC.Audio.Normalization.CalculateRMSLevel(), and BGC.Audio.Normalization.SPLToAdjustmentDB().
|
inlinestatic |
Definition at line 224 of file Calibration.cs.
|
inlinestatic |
Definition at line 320 of file Calibration.cs.
|
inlinestatic |
Definition at line 54 of file Calibration.cs.
References BGC.IO.DataManagement.PathForDataFile(), and BGC.IO.FileReader.ReadJsonFile().
Referenced by BGC.Tests.SynthesisTests.FMTestBell(), BGC.Tests.SynthesisTests.FMTestBrass(), BGC.Tests.SynthesisTests.FMTestDrum(), BGC.Tests.SynthesisTests.FMTestOvertones(), BGC.Tests.SynthesisTests.FMTestPiano(), BGC.Tests.SynthesisTests.FMTestTrianglePiano(), BGC.Tests.SynthesisTests.SmallAnalyticFMTest(), BGC.Tests.SynthesisTests.SmallSineFMTest(), BGC.Tests.SynthesisTests.TestAllPassFilterSpeech(), BGC.Tests.SynthesisTests.TestAllPassFilterSynth(), BGC.Tests.SynthesisTests.TestBiQuadFilters(), BGC.Tests.SynthesisTests.TestCarrierModifiedFakeVoices(), BGC.Tests.MidiEncodingTests.TestContinuousFilter(), BGC.Tests.SynthesisTests.TestFakeVoice(), BGC.Tests.SynthesisTests.TestFDComposer(), BGC.Tests.SynthesisTests.TestFDComposerPure(), BGC.Tests.MidiEncodingTests.TestFlute(), BGC.Tests.SynthesisTests.TestFMFilterSynth(), BGC.Tests.SynthesisTests.TestFMFilterVoice(), BGC.Tests.SynthesisTests.TestFrequencyShifter(), BGC.Tests.SynthesisTests.TestFunFakeVoice(), BGC.Tests.MidiEncodingTests.TestGuitar(), BGC.Tests.MidiEncodingTests.TestOrgan(), BGC.Tests.SynthesisTests.TestPhaseReEncoder(), BGC.Tests.MidiEncodingTests.TestPulses(), BGC.Tests.MidiEncodingTests.TestRenderMidi(), BGC.Tests.MidiEncodingTests.TestRenderToccataMidi(), BGC.Tests.SynthesisTests.TestSawtoothWave(), BGC.Tests.SynthesisTests.TestSineWave(), BGC.Tests.SynthesisTests.TestSquareWave(), BGC.Tests.SynthesisTests.TestSTM(), and BGC.Tests.SynthesisTests.TestTriangleWave().
|
inlinestatic |
Definition at line 124 of file Calibration.cs.
|
inlinestatic |
Definition at line 186 of file Calibration.cs.
|
inlinestatic |
Definition at line 88 of file Calibration.cs.
References BGC.IO.DataManagement.PathForDataFile(), and BGC.IO.FileWriter.WriteJson().
|
inlinestaticprivate |
Definition at line 96 of file Calibration.cs.
References LightJson.JsonArray.Add(), BGC.Audio.Calibration.Keys.CustomCalibration, BGC.Audio.Calibration.Keys.LAdjustment, BGC.Audio.Calibration.Keys.Level, BGC.Audio.Calibration.CalibrationPoint.levelIn, BGC.Audio.Calibration.CalibrationPoint.levelOffsetL, BGC.Audio.Calibration.CalibrationPoint.levelOffsetR, and BGC.Audio.Calibration.Keys.RAdjustment.
|
inlinestatic |
Definition at line 156 of file Calibration.cs.
|
staticprivate |
Definition at line 50 of file Calibration.cs.
|
staticprivate |
Definition at line 45 of file Calibration.cs.
|
staticprivate |
Definition at line 49 of file Calibration.cs.
|
staticprivate |
Definition at line 52 of file Calibration.cs.
|
staticprivate |
Definition at line 47 of file Calibration.cs.
|
staticprivate |
Definition at line 46 of file Calibration.cs.