public MixerMaster(MixerWindow _mixer) { mixerWindow = _mixer; project = mixerWindow.project; InitializeComponent(); chkLock.Checked = true; fadersAreLocked = true; leftMeter = new LevelMeter(this); leftMeter.Location = new Point(45, 26); this.Controls.Add(leftMeter); leftMeter.BringToFront(); rightMeter = new LevelMeter(this); rightMeter.Location = new Point(80, 26); rightMeter.BringToFront(); this.Controls.Add(rightMeter); }
//cons public MixerStrip(MixerWindow _mixer, X1Track _track) { mixer = _mixer; track = _track; //track.mixerStrip = this; //trackNumber = track.number; InitializeComponent(); //String trackString = (track.number + 1).ToString("D"); //lblTrackNum.Text = trackString; //txtTrackName.Text = "Track " + trackString; //cbxSource.DataSource = track.getInputDeviceList(); //cbxSource.SelectedIndex = 0; deviceNumber = -1; level = 1.0f; pan = 0.5f; isMuted = false; isSoloing = false; isRecording = false; }
public void close() { mixer = null; track.mixerStrip = null; track = null; }