public void close() { trackPanel = null; track.trackView = null; track = null; trackData.trackView = null; trackData = null; }
//- track management ---------------------------------------------------------- public void addTrackView(X1Track track, int duration) { trackWidth = duration * zoomfactor; TrackView trackView = new TrackView(this, track, trackWidth); trackView.Location = new Point(0, tracks.Count * TrackView.TRACKHEIGHT + ruler.Height); tracksHeight += TrackView.TRACKHEIGHT; this.Controls.Add(trackView); tracks.Add(trackView); this.Height++; //trigger a resize to draw scrollbars if needed }
//----------------------------------------------------------------------------- public void addMixerStrip(X1Track track) { MixerStrip strip = new MixerStrip(this, track); mixerStrips.Add(strip); stripPanel.Controls.Add(strip); stripCount++; int xpos = 0; foreach (MixerStrip mixStrip in mixerStrips) { mixStrip.Location = new Point(xpos, 0); xpos += MixerStrip.STRIPWIDTH; } stripPanel.Size = new Size(xpos, MixerStrip.STRIPHEIGHT); this.MaximumSize = new Size((this.Right - mixmaster.Left) + stripPanel.Width, this.Height); updateScrollBar(); Invalidate(); }
public TrackView(TrackPanel _trackPanel, X1Track _track, int width) { trackPanel = _trackPanel; track = _track; track.trackView = this; trackName = track.name; InitializeComponent(); this.Width = width + TRACKHEADERWIDTH + 2; lblTrackNum.Text = (track.number + 1).ToString("D"); trackPanel.signalsWindow.setTooltip(lblTrackNum, trackName); trackData = new TrackData(this); trackData.Width = width; trackData.Location = new Point(TRACKHEADERWIDTH, 0); this.Controls.Add(trackData); isMuted = false; isSoloing = false; isRecording = false; }
//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; }