private void WaveInfoForm_Load(object sender, EventArgs e) { mWaveOut = new WavePlayback(); mWaveOut.SetValue(mFile.Wave[mWaveIndex]); mSpecBmp = new DoubleBufferBitmap(picSpectrum); mWaveGraph = new DoubleBufferGraphic(picWave, null); mLoopGraph = new DoubleBufferGraphic(picLoop, null); mDetectNote = -1; mDetectTune = 0; mWaveTimeScale = (float)Math.Pow(2.0, ((double)numWaveScale.Value - 32.0) / 4.0); mWaveAmp = (float)Math.Pow(2.0, ((double)(int)numWaveAmp.Value - 2) / 2.0); mLoopTimeScale = (float)Math.Pow(2.0, ((double)numLoopScale.Value - 32.0) / 4.0); mLoopAmp = (float)Math.Pow(2.0, ((double)(int)numLoopAmp.Value - 2) / 2.0); SetColor(); SetPosition(); SetData(); SizeChange(); lblPitch.Text = ""; lblPitchCent.Text = ""; timer1.Interval = 50; timer1.Enabled = true; timer1.Start(); }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } ParentBitmap.Dispose(); AboutBitmap.Dispose(); AboutTextBitmap.Dispose(); DoubleBufferBitmap.Dispose(); base.Dispose(disposing); }