void DsFileVars() { INI.Load(FilePath); General.Version = INI.GetChars(SecGeneral, "Version"); // must be present General.Comment = INI.GetChars(SecGeneral, "Comment", " \0"); General.Stretch = INI.GetFloat(SecGeneral, "Stretch", 100); General.Level = INI.GetInt32(SecGeneral, "Level", 0); General.Tuning = INI.GetFloat(SecGeneral, "Tuning", 0.0f); General.Filter = INI.GetInt32(SecGeneral, "Filter", 0); General.Resonance = INI.GetInt32(SecGeneral, "Resonance", 0); General.HighPass = INI.GetInt32(SecGeneral, "HighPass", 0); General.FilterEnv = INI.GetChars(SecGeneral, "FilterEnv", "0,100 442000,100 442000,0"); Tone.On = INI.GetInt32(SecTone, "On", 0); Tone.Level = INI.GetInt32(SecTone, "Level", 128); Tone.F1 = INI.GetFloat(SecTone, "F1", 200.0f); Tone.F2 = INI.GetFloat(SecTone, "F2", 120.0f); Tone.Droop = INI.GetInt32(SecTone, "Droop", 0); Tone.Phase = INI.GetFloat(SecTone, "Phase", 90.0f); //degrees>radians Tone.Envelope = INI.GetChars(SecTone, "Envelope", "0,0 100,0"); Noise.On = INI.GetInt32(SecNoise, "On", 0); Noise.Level = INI.GetInt32(SecNoise, "Level", 0); Noise.Slope = INI.GetInt32(SecNoise, "Slope", 0); Noise.FixedSeq = INI.GetInt32(SecNoise, "FixedSeq", 0); Noise.Envelope = INI.GetChars(SecNoise, "Envelope", "0,0 100,0"); Overtones.On = INI.GetInt32(SecOvertones, "On", 0); Overtones.Level = INI.GetInt32(SecOvertones, "Level", 128); Overtones.Method = INI.GetInt32(SecOvertones, "Method", 2); Overtones.F1 = INI.GetFloat(SecOvertones, "F1", 200.0f); Overtones.F2 = INI.GetFloat(SecOvertones, "F2", 200.0f); Overtones.Wave1 = INI.GetInt32(SecOvertones, "Wave1", 0); Overtones.Wave2 = INI.GetInt32(SecOvertones, "Wave2", 0); Overtones.Param = INI.GetInt32(SecOvertones, "Param", 50); Overtones.Filter = INI.GetInt32(SecOvertones, "Filter", 0); Overtones.Track1 = INI.GetInt32(SecOvertones, "Track1", 0); Overtones.Track2 = INI.GetInt32(SecOvertones, "Track2", 0); Overtones.Envelope1 = INI.GetChars(SecOvertones, "Envelope1", "0,0 100,0"); Overtones.Envelope2 = INI.GetChars(SecOvertones, "Envelope2", "0,0 100,0"); NoiseBand.On = INI.GetInt32(SecNoiseBand, "On", 0); NoiseBand.Level = INI.GetInt32(SecNoiseBand, "Level", 128); NoiseBand.F = INI.GetFloat(SecNoiseBand, "F", 1000.0f); NoiseBand.dF = INI.GetInt32(SecNoiseBand, "dF", 50); NoiseBand.Envelope = INI.GetChars(SecNoiseBand, "Envelope", "0,0 100,0"); NoiseBand2.On = INI.GetInt32(SecNoiseBand2, "On", 0); NoiseBand2.Level = INI.GetInt32(SecNoiseBand2, "Level", 128); NoiseBand2.F = INI.GetFloat(SecNoiseBand2, "F", 1000.0f); NoiseBand2.dF = INI.GetInt32(SecNoiseBand2, "dF", 50); NoiseBand2.Envelope = INI.GetChars(SecNoiseBand2, "Envelope", "0,0 100,0"); Distortion.On = INI.GetInt32(SecDistortion, "On", 0); Distortion.Rate = INI.GetInt32(SecDistortion, "Rate", 0); Distortion.Bits = INI.GetInt32(SecDistortion, "Bits", 0); Distortion.Clipping = INI.GetInt32(SecDistortion, "Clipping", 0); }