private void InitializeComponent() { this.ioO = new AudioProcessor.RTIO(); this.ioI = new AudioProcessor.RTIO(); this.SuspendLayout(); // // ioO // this.ioO.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ioO.contactBackColor = System.Drawing.Color.Black; this.ioO.contactColor = System.Drawing.Color.DimGray; this.ioO.Location = new System.Drawing.Point(46, 25); this.ioO.Name = "ioO"; this.ioO.orientation = AudioProcessor.RTIO.RTOrientation.East; this.ioO.showTitle = false; this.ioO.Size = new System.Drawing.Size(21, 20); this.ioO.TabIndex = 19; this.ioO.Text = "rtio9"; this.ioO.title = "A*B1"; this.ioO.titleColor = System.Drawing.Color.DimGray; this.ioO.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioO.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // ioI // this.ioI.contactBackColor = System.Drawing.Color.Black; this.ioI.contactColor = System.Drawing.Color.DimGray; this.ioI.Location = new System.Drawing.Point(0, 25); this.ioI.Name = "ioI"; this.ioI.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioI.showTitle = false; this.ioI.Size = new System.Drawing.Size(21, 20); this.ioI.TabIndex = 18; this.ioI.Text = "rtio1"; this.ioI.title = "A"; this.ioI.titleColor = System.Drawing.Color.DimGray; this.ioI.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioI.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // Nop // this.canShrink = false; this.Controls.Add(this.ioO); this.Controls.Add(this.ioI); this.hasActiveSwitch = false; this.Name = "Nop"; this.Size = new System.Drawing.Size(67, 52); this.title = "NOP"; this.ResumeLayout(false); }
private void InitializeComponent() { this.dlBPM = new AudioProcessor.RTDial(); this.ioPitch = new AudioProcessor.RTIO(); this.ioGate = new AudioProcessor.RTIO(); this.rtChoice1 = new AudioProcessor.RTChoice(); this.sfMain = new AudioProcessor.RTSequencerField(); this.ioSync = new AudioProcessor.RTIO(); this.ioAmp = new AudioProcessor.RTIO(); this.dloct = new AudioProcessor.RTDial(); this.dlGain = new AudioProcessor.RTDial(); this.SuspendLayout(); // // dlBPM // this.dlBPM.dialColor = System.Drawing.Color.DimGray; this.dlBPM.dialDiameter = 50D; this.dlBPM.dialMarkColor = System.Drawing.Color.Red; this.dlBPM.format = "F2"; this.dlBPM.Location = new System.Drawing.Point(61, 23); this.dlBPM.logScale = false; this.dlBPM.maxVal = 600D; this.dlBPM.minVal = 1D; this.dlBPM.Name = "dlBPM"; this.dlBPM.scaleColor = System.Drawing.Color.Gold; this.dlBPM.showScale = true; this.dlBPM.showTitle = true; this.dlBPM.showValue = true; this.dlBPM.Size = new System.Drawing.Size(80, 80); this.dlBPM.TabIndex = 0; this.dlBPM.Text = "control1"; this.dlBPM.title = "Rate"; this.dlBPM.titleColor = System.Drawing.Color.DimGray; this.dlBPM.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.dlBPM.unit = "BPM"; this.dlBPM.val = 80D; this.dlBPM.valueColor = System.Drawing.Color.DimGray; this.dlBPM.valueFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); // // ioPitch // this.ioPitch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ioPitch.contactBackColor = System.Drawing.Color.DimGray; this.ioPitch.contactColor = System.Drawing.Color.DimGray; this.ioPitch.contactHighlightColor = System.Drawing.Color.Red; this.ioPitch.highlighted = false; this.ioPitch.Location = new System.Drawing.Point(312, 23); this.ioPitch.Name = "ioPitch"; this.ioPitch.orientation = AudioProcessor.RTIO.RTOrientation.East; this.ioPitch.showTitle = true; this.ioPitch.Size = new System.Drawing.Size(53, 20); this.ioPitch.TabIndex = 3; this.ioPitch.Text = "rtio1"; this.ioPitch.title = "Pitch"; this.ioPitch.titleColor = System.Drawing.Color.DimGray; this.ioPitch.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioPitch.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // ioGate // this.ioGate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ioGate.contactBackColor = System.Drawing.Color.DimGray; this.ioGate.contactColor = System.Drawing.Color.DimGray; this.ioGate.contactHighlightColor = System.Drawing.Color.Red; this.ioGate.highlighted = false; this.ioGate.Location = new System.Drawing.Point(312, 75); this.ioGate.Name = "ioGate"; this.ioGate.orientation = AudioProcessor.RTIO.RTOrientation.East; this.ioGate.showTitle = true; this.ioGate.Size = new System.Drawing.Size(53, 20); this.ioGate.TabIndex = 4; this.ioGate.Text = "rtio2"; this.ioGate.title = "Gate"; this.ioGate.titleColor = System.Drawing.Color.DimGray; this.ioGate.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioGate.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // rtChoice1 // this.rtChoice1.backColor = System.Drawing.Color.Black; this.rtChoice1.frontColor = System.Drawing.Color.White; this.rtChoice1.Location = new System.Drawing.Point(0, 0); this.rtChoice1.Name = "rtChoice1"; this.rtChoice1.selectedItem = -1; this.rtChoice1.Size = new System.Drawing.Size(100, 100); this.rtChoice1.TabIndex = 0; this.rtChoice1.title = "Choice"; this.rtChoice1.titleColor = System.Drawing.Color.DimGray; this.rtChoice1.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.rtChoice1.xdim = 50; // // sfMain // this.sfMain.colHeadColor = System.Drawing.Color.DarkGray; this.sfMain.colHeadFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.sfMain.colHeadHeight = 16; this.sfMain.columns = 16; this.sfMain.fillOffColor = System.Drawing.Color.Black; this.sfMain.fillOnColor = System.Drawing.Color.DarkRed; this.sfMain.frameColor = System.Drawing.Color.SeaGreen; this.sfMain.highLightColor = System.Drawing.Color.DarkOliveGreen; this.sfMain.hlCol = -1; this.sfMain.Location = new System.Drawing.Point(28, 109); this.sfMain.Name = "sfMain"; this.sfMain.rowHeadColor = System.Drawing.Color.DarkGray; this.sfMain.rowHeadFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.sfMain.rowHeadWidth = 30; this.sfMain.rows = 12; this.sfMain.selectColor = System.Drawing.Color.Aqua; this.sfMain.showColHeads = true; this.sfMain.showRowHeads = true; this.sfMain.Size = new System.Drawing.Size(289, 206); this.sfMain.TabIndex = 5; this.sfMain.takt = 4; this.sfMain.Text = "rtSequencerField1"; // // ioSync // this.ioSync.contactBackColor = System.Drawing.Color.DimGray; this.ioSync.contactColor = System.Drawing.Color.DimGray; this.ioSync.contactHighlightColor = System.Drawing.Color.Red; this.ioSync.highlighted = false; this.ioSync.Location = new System.Drawing.Point(0, 23); this.ioSync.Name = "ioSync"; this.ioSync.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioSync.showTitle = true; this.ioSync.Size = new System.Drawing.Size(59, 20); this.ioSync.TabIndex = 12; this.ioSync.Text = "rtio3"; this.ioSync.title = "Sync"; this.ioSync.titleColor = System.Drawing.Color.DimGray; this.ioSync.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioSync.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // ioAmp // this.ioAmp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ioAmp.contactBackColor = System.Drawing.Color.DimGray; this.ioAmp.contactColor = System.Drawing.Color.DimGray; this.ioAmp.contactHighlightColor = System.Drawing.Color.Red; this.ioAmp.highlighted = false; this.ioAmp.Location = new System.Drawing.Point(312, 49); this.ioAmp.Name = "ioAmp"; this.ioAmp.orientation = AudioProcessor.RTIO.RTOrientation.East; this.ioAmp.showTitle = true; this.ioAmp.Size = new System.Drawing.Size(53, 20); this.ioAmp.TabIndex = 13; this.ioAmp.Text = "rtio1"; this.ioAmp.title = "Amp"; this.ioAmp.titleColor = System.Drawing.Color.DimGray; this.ioAmp.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioAmp.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // dloct // this.dloct.dialColor = System.Drawing.Color.DimGray; this.dloct.dialDiameter = 50D; this.dloct.dialMarkColor = System.Drawing.Color.Red; this.dloct.format = "F0"; this.dloct.Location = new System.Drawing.Point(147, 23); this.dloct.logScale = false; this.dloct.maxVal = 4D; this.dloct.minVal = -4D; this.dloct.Name = "dloct"; this.dloct.scaleColor = System.Drawing.Color.Gold; this.dloct.showScale = true; this.dloct.showTitle = true; this.dloct.showValue = true; this.dloct.Size = new System.Drawing.Size(80, 80); this.dloct.TabIndex = 14; this.dloct.Text = "control1"; this.dloct.title = "Octave"; this.dloct.titleColor = System.Drawing.Color.DimGray; this.dloct.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.dloct.unit = ""; this.dloct.val = 0D; this.dloct.valueColor = System.Drawing.Color.DimGray; this.dloct.valueFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); // // dlGain // this.dlGain.dialColor = System.Drawing.Color.DimGray; this.dlGain.dialDiameter = 50D; this.dlGain.dialMarkColor = System.Drawing.Color.Red; this.dlGain.format = "F0"; this.dlGain.Location = new System.Drawing.Point(233, 23); this.dlGain.logScale = false; this.dlGain.maxVal = 20D; this.dlGain.minVal = -100D; this.dlGain.Name = "dlGain"; this.dlGain.scaleColor = System.Drawing.Color.Gold; this.dlGain.showScale = true; this.dlGain.showTitle = true; this.dlGain.showValue = true; this.dlGain.Size = new System.Drawing.Size(80, 80); this.dlGain.TabIndex = 15; this.dlGain.Text = "control1"; this.dlGain.title = "Gain"; this.dlGain.titleColor = System.Drawing.Color.DimGray; this.dlGain.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.dlGain.unit = "dB"; this.dlGain.val = -20D; this.dlGain.valueColor = System.Drawing.Color.DimGray; this.dlGain.valueFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); // // Sequencer // this.BackColor = System.Drawing.Color.Black; this.Controls.Add(this.dlGain); this.Controls.Add(this.dloct); this.Controls.Add(this.ioAmp); this.Controls.Add(this.ioSync); this.Controls.Add(this.sfMain); this.Controls.Add(this.ioGate); this.Controls.Add(this.ioPitch); this.Controls.Add(this.dlBPM); this.Name = "Sequencer"; this.shrinkSize = new System.Drawing.Size(120, 107); this.shrinkTitle = "Seq."; this.Size = new System.Drawing.Size(365, 329); this.title = "Sequencer"; this.ResumeLayout(false); }
private void InitializeComponent() { this.ioFM = new AudioProcessor.RTIO(); this.ioAM = new AudioProcessor.RTIO(); this.dlFreq = new AudioProcessor.RTDial(); this.dlAmp = new AudioProcessor.RTDial(); this.io0 = new AudioProcessor.RTIO(); this.ioSyncOut = new AudioProcessor.RTIO(); this.ioPWM = new AudioProcessor.RTIO(); this.ioSyncIn = new AudioProcessor.RTIO(); this.chWaveForm = new AudioProcessor.RTChoice(); this.io90 = new AudioProcessor.RTIO(); this.dlPWM = new AudioProcessor.RTDial(); this.bnRMSAMP = new AudioProcessor.RTButton(); this.bnFLog = new AudioProcessor.RTButton(); this.bnANoOfs = new AudioProcessor.RTButton(); this.SuspendLayout(); // // ioFM // this.ioFM.contactBackColor = System.Drawing.Color.Black; this.ioFM.contactColor = System.Drawing.Color.DimGray; this.ioFM.contactHighlightColor = System.Drawing.Color.Red; this.ioFM.highlighted = false; this.ioFM.Location = new System.Drawing.Point(0, 28); this.ioFM.Name = "ioFM"; this.ioFM.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioFM.showTitle = true; this.ioFM.Size = new System.Drawing.Size(48, 20); this.ioFM.TabIndex = 0; this.ioFM.Text = "rtio1"; this.ioFM.title = "FM"; this.ioFM.titleColor = System.Drawing.Color.DimGray; this.ioFM.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioFM.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // ioAM // this.ioAM.contactBackColor = System.Drawing.Color.Black; this.ioAM.contactColor = System.Drawing.Color.DimGray; this.ioAM.contactHighlightColor = System.Drawing.Color.Red; this.ioAM.highlighted = false; this.ioAM.Location = new System.Drawing.Point(0, 54); this.ioAM.Name = "ioAM"; this.ioAM.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioAM.showTitle = true; this.ioAM.Size = new System.Drawing.Size(48, 20); this.ioAM.TabIndex = 1; this.ioAM.Text = "rtio2"; this.ioAM.title = "AM"; this.ioAM.titleColor = System.Drawing.Color.DimGray; this.ioAM.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioAM.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // dlFreq // this.dlFreq.dialColor = System.Drawing.Color.Silver; this.dlFreq.dialDiameter = 50D; this.dlFreq.dialMarkColor = System.Drawing.Color.Red; this.dlFreq.format = "F0"; this.dlFreq.Location = new System.Drawing.Point(92, 20); this.dlFreq.logScale = true; this.dlFreq.maxVal = 100000D; this.dlFreq.minVal = 1D; this.dlFreq.Name = "dlFreq"; this.dlFreq.scaleColor = System.Drawing.Color.Gold; this.dlFreq.showScale = true; this.dlFreq.showTitle = true; this.dlFreq.showValue = true; this.dlFreq.Size = new System.Drawing.Size(60, 80); this.dlFreq.TabIndex = 2; this.dlFreq.Text = "rtDial1"; this.dlFreq.title = "Frequ."; this.dlFreq.titleColor = System.Drawing.Color.DimGray; this.dlFreq.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.dlFreq.unit = "Hz"; this.dlFreq.val = 440D; this.dlFreq.valueColor = System.Drawing.Color.DimGray; this.dlFreq.valueFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); // // dlAmp // this.dlAmp.dialColor = System.Drawing.Color.Silver; this.dlAmp.dialDiameter = 50D; this.dlAmp.dialMarkColor = System.Drawing.Color.Red; this.dlAmp.format = "F1"; this.dlAmp.Location = new System.Drawing.Point(224, 20); this.dlAmp.logScale = false; this.dlAmp.maxVal = 100D; this.dlAmp.minVal = -100D; this.dlAmp.Name = "dlAmp"; this.dlAmp.scaleColor = System.Drawing.Color.Gold; this.dlAmp.showScale = true; this.dlAmp.showTitle = false; this.dlAmp.showValue = true; this.dlAmp.Size = new System.Drawing.Size(60, 80); this.dlAmp.TabIndex = 3; this.dlAmp.Text = "rtDial2"; this.dlAmp.title = "RMS"; this.dlAmp.titleColor = System.Drawing.Color.DimGray; this.dlAmp.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.dlAmp.unit = "dB"; this.dlAmp.val = -20D; this.dlAmp.valueColor = System.Drawing.Color.DimGray; this.dlAmp.valueFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); // // io0 // this.io0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.io0.contactBackColor = System.Drawing.Color.Black; this.io0.contactColor = System.Drawing.Color.DimGray; this.io0.contactHighlightColor = System.Drawing.Color.Red; this.io0.highlighted = false; this.io0.Location = new System.Drawing.Point(295, 37); this.io0.Name = "io0"; this.io0.orientation = AudioProcessor.RTIO.RTOrientation.East; this.io0.showTitle = true; this.io0.Size = new System.Drawing.Size(51, 20); this.io0.TabIndex = 4; this.io0.Text = "rtio3"; this.io0.title = "0°"; this.io0.titleColor = System.Drawing.Color.DimGray; this.io0.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.io0.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // ioSyncOut // this.ioSyncOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ioSyncOut.contactBackColor = System.Drawing.Color.Black; this.ioSyncOut.contactColor = System.Drawing.Color.DimGray; this.ioSyncOut.contactHighlightColor = System.Drawing.Color.Red; this.ioSyncOut.highlighted = false; this.ioSyncOut.Location = new System.Drawing.Point(295, 89); this.ioSyncOut.Name = "ioSyncOut"; this.ioSyncOut.orientation = AudioProcessor.RTIO.RTOrientation.East; this.ioSyncOut.showTitle = true; this.ioSyncOut.Size = new System.Drawing.Size(51, 20); this.ioSyncOut.TabIndex = 5; this.ioSyncOut.Text = "rtio4"; this.ioSyncOut.title = "Sync"; this.ioSyncOut.titleColor = System.Drawing.Color.DimGray; this.ioSyncOut.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioSyncOut.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // ioPWM // this.ioPWM.contactBackColor = System.Drawing.Color.Black; this.ioPWM.contactColor = System.Drawing.Color.DimGray; this.ioPWM.contactHighlightColor = System.Drawing.Color.Red; this.ioPWM.highlighted = false; this.ioPWM.Location = new System.Drawing.Point(0, 80); this.ioPWM.Name = "ioPWM"; this.ioPWM.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioPWM.showTitle = true; this.ioPWM.Size = new System.Drawing.Size(56, 20); this.ioPWM.TabIndex = 6; this.ioPWM.Text = "rtio5"; this.ioPWM.title = "PWM"; this.ioPWM.titleColor = System.Drawing.Color.DimGray; this.ioPWM.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioPWM.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // ioSyncIn // this.ioSyncIn.contactBackColor = System.Drawing.Color.Black; this.ioSyncIn.contactColor = System.Drawing.Color.DimGray; this.ioSyncIn.contactHighlightColor = System.Drawing.Color.Red; this.ioSyncIn.highlighted = false; this.ioSyncIn.Location = new System.Drawing.Point(0, 106); this.ioSyncIn.Name = "ioSyncIn"; this.ioSyncIn.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioSyncIn.showTitle = true; this.ioSyncIn.Size = new System.Drawing.Size(56, 20); this.ioSyncIn.TabIndex = 8; this.ioSyncIn.Text = "rtio5"; this.ioSyncIn.title = "Sync"; this.ioSyncIn.titleColor = System.Drawing.Color.DimGray; this.ioSyncIn.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioSyncIn.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // chWaveForm // this.chWaveForm.backColor = System.Drawing.Color.Black; this.chWaveForm.frontColor = System.Drawing.Color.DimGray; this.chWaveForm.Location = new System.Drawing.Point(109, 106); this.chWaveForm.Name = "chWaveForm"; this.chWaveForm.selectedItem = -1; this.chWaveForm.Size = new System.Drawing.Size(129, 20); this.chWaveForm.TabIndex = 9; this.chWaveForm.Text = "rtChoice1"; this.chWaveForm.title = "Waveform"; this.chWaveForm.titleColor = System.Drawing.Color.DimGray; this.chWaveForm.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.chWaveForm.xdim = 50; // // io90 // this.io90.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.io90.contactBackColor = System.Drawing.Color.Black; this.io90.contactColor = System.Drawing.Color.DimGray; this.io90.contactHighlightColor = System.Drawing.Color.Red; this.io90.highlighted = false; this.io90.Location = new System.Drawing.Point(295, 63); this.io90.Name = "io90"; this.io90.orientation = AudioProcessor.RTIO.RTOrientation.East; this.io90.showTitle = true; this.io90.Size = new System.Drawing.Size(51, 20); this.io90.TabIndex = 11; this.io90.Text = "rtio3"; this.io90.title = "90°"; this.io90.titleColor = System.Drawing.Color.DimGray; this.io90.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.io90.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // dlPWM // this.dlPWM.dialColor = System.Drawing.Color.Silver; this.dlPWM.dialDiameter = 50D; this.dlPWM.dialMarkColor = System.Drawing.Color.Red; this.dlPWM.format = "F2"; this.dlPWM.Location = new System.Drawing.Point(158, 20); this.dlPWM.logScale = false; this.dlPWM.maxVal = 1D; this.dlPWM.minVal = -1D; this.dlPWM.Name = "dlPWM"; this.dlPWM.scaleColor = System.Drawing.Color.Gold; this.dlPWM.showScale = true; this.dlPWM.showTitle = true; this.dlPWM.showValue = true; this.dlPWM.Size = new System.Drawing.Size(60, 80); this.dlPWM.TabIndex = 12; this.dlPWM.Text = "rtDial2"; this.dlPWM.title = "PWM"; this.dlPWM.titleColor = System.Drawing.Color.DimGray; this.dlPWM.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.dlPWM.unit = ""; this.dlPWM.val = 0D; this.dlPWM.valueColor = System.Drawing.Color.DimGray; this.dlPWM.valueFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); // // bnRMSAMP // this.bnRMSAMP.buttonDim = new System.Drawing.Size(30, 15); this.bnRMSAMP.buttonState = false; this.bnRMSAMP.buttonType = AudioProcessor.RTButton.RTButtonType.ToggleButton; this.bnRMSAMP.fillOffColor = System.Drawing.Color.Green; this.bnRMSAMP.fillOnColor = System.Drawing.Color.Navy; this.bnRMSAMP.frameHoldColor = System.Drawing.Color.Yellow; this.bnRMSAMP.frameOffColor = System.Drawing.Color.Lime; this.bnRMSAMP.frameOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.bnRMSAMP.Location = new System.Drawing.Point(238, 19); this.bnRMSAMP.Name = "bnRMSAMP"; this.bnRMSAMP.offText = "RMS"; this.bnRMSAMP.onText = "Amp"; this.bnRMSAMP.Size = new System.Drawing.Size(31, 16); this.bnRMSAMP.TabIndex = 13; this.bnRMSAMP.Text = "rtButton1"; this.bnRMSAMP.textFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.bnRMSAMP.textOffColor = System.Drawing.Color.Lime; this.bnRMSAMP.textOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.bnRMSAMP.title = "Button"; this.bnRMSAMP.titleColor = System.Drawing.Color.DimGray; this.bnRMSAMP.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.bnRMSAMP.titlePos = AudioProcessor.RTButton.RTTitlePos.Off; // // bnFLog // this.bnFLog.buttonDim = new System.Drawing.Size(30, 15); this.bnFLog.buttonState = false; this.bnFLog.buttonType = AudioProcessor.RTButton.RTButtonType.ToggleButton; this.bnFLog.fillOffColor = System.Drawing.Color.Green; this.bnFLog.fillOnColor = System.Drawing.Color.Navy; this.bnFLog.frameHoldColor = System.Drawing.Color.Yellow; this.bnFLog.frameOffColor = System.Drawing.Color.Lime; this.bnFLog.frameOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.bnFLog.Location = new System.Drawing.Point(55, 30); this.bnFLog.Name = "bnFLog"; this.bnFLog.offText = "Lin"; this.bnFLog.onText = "Log"; this.bnFLog.Size = new System.Drawing.Size(31, 16); this.bnFLog.TabIndex = 18; this.bnFLog.Text = "rtButton2"; this.bnFLog.textFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.bnFLog.textOffColor = System.Drawing.Color.Lime; this.bnFLog.textOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.bnFLog.title = "Button"; this.bnFLog.titleColor = System.Drawing.Color.DimGray; this.bnFLog.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.bnFLog.titlePos = AudioProcessor.RTButton.RTTitlePos.Off; // // bnANoOfs // this.bnANoOfs.buttonDim = new System.Drawing.Size(30, 15); this.bnANoOfs.buttonState = false; this.bnANoOfs.buttonType = AudioProcessor.RTButton.RTButtonType.ToggleButton; this.bnANoOfs.fillOffColor = System.Drawing.Color.Green; this.bnANoOfs.fillOnColor = System.Drawing.Color.Navy; this.bnANoOfs.frameHoldColor = System.Drawing.Color.Yellow; this.bnANoOfs.frameOffColor = System.Drawing.Color.Lime; this.bnANoOfs.frameOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.bnANoOfs.Location = new System.Drawing.Point(55, 55); this.bnANoOfs.Name = "bnANoOfs"; this.bnANoOfs.offText = "+1"; this.bnANoOfs.onText = "0"; this.bnANoOfs.Size = new System.Drawing.Size(31, 16); this.bnANoOfs.TabIndex = 19; this.bnANoOfs.Text = "rtButton2"; this.bnANoOfs.textFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.bnANoOfs.textOffColor = System.Drawing.Color.Lime; this.bnANoOfs.textOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.bnANoOfs.title = "Button"; this.bnANoOfs.titleColor = System.Drawing.Color.DimGray; this.bnANoOfs.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.bnANoOfs.titlePos = AudioProcessor.RTButton.RTTitlePos.Off; // // FGenerator // this.BackColor = System.Drawing.Color.Black; this.Controls.Add(this.bnANoOfs); this.Controls.Add(this.bnFLog); this.Controls.Add(this.bnRMSAMP); this.Controls.Add(this.dlPWM); this.Controls.Add(this.io90); this.Controls.Add(this.chWaveForm); this.Controls.Add(this.ioSyncIn); this.Controls.Add(this.ioPWM); this.Controls.Add(this.ioSyncOut); this.Controls.Add(this.io0); this.Controls.Add(this.dlAmp); this.Controls.Add(this.dlFreq); this.Controls.Add(this.ioAM); this.Controls.Add(this.ioFM); this.Name = "FGenerator"; this.shrinkSize = new System.Drawing.Size(135, 137); this.shrinkTitle = "Fgen"; this.Size = new System.Drawing.Size(346, 137); this.title = "Function Generator"; this.ResumeLayout(false); }
protected override SinkSourceMode driverConnect() { if (selectedDriver <= 0) { return(SinkSourceMode.Offline); } owner.logText(String.Format("Opening ASIO Device {0}", driverNames[selectedDriver])); try { waveDev = new AsioOut(driverNames[selectedDriver]); waveDev.ChannelOffset = 0; waveDev.InputChannelOffset = 0; if ((waveDev.DriverInputChannelCount == 0) && (waveDev.DriverOutputChannelCount == 0)) { throw new Exception(String.Format("ASIO Driver {0} proveides no Input or output channels", driverNames[selectedDriver])); } RTIO[] ins = new RTIO[min(waveDev.DriverInputChannelCount, maxChannels)]; RTIO[] outs = new RTIO[min(waveDev.DriverOutputChannelCount, maxChannels)]; if ((waveDev.DriverInputChannelCount > 0) && (maxChannels > 0)) { ins[0] = ioI1; } if ((waveDev.DriverInputChannelCount > 1) && (maxChannels > 1)) { ins[1] = ioI2; } if ((waveDev.DriverInputChannelCount > 2) && (maxChannels > 2)) { ins[2] = ioI3; } if ((waveDev.DriverInputChannelCount > 3) && (maxChannels > 3)) { ins[3] = ioI4; } if ((waveDev.DriverInputChannelCount > 4) && (maxChannels > 4)) { ins[4] = ioI5; } if ((waveDev.DriverInputChannelCount > 5) && (maxChannels > 5)) { ins[5] = ioI6; } if ((waveDev.DriverInputChannelCount > 6) && (maxChannels > 6)) { ins[6] = ioI7; } if ((waveDev.DriverInputChannelCount > 7) && (maxChannels > 7)) { ins[7] = ioI8; } if ((waveDev.DriverOutputChannelCount > 0) && (maxChannels > 0)) { outs[0] = ioO1; } if ((waveDev.DriverOutputChannelCount > 1) && (maxChannels > 1)) { outs[1] = ioO2; } if ((waveDev.DriverOutputChannelCount > 2) && (maxChannels > 2)) { outs[2] = ioO3; } if ((waveDev.DriverOutputChannelCount > 3) && (maxChannels > 3)) { outs[3] = ioO4; } if ((waveDev.DriverOutputChannelCount > 4) && (maxChannels > 4)) { outs[4] = ioO5; } if ((waveDev.DriverOutputChannelCount > 5) && (maxChannels > 5)) { outs[5] = ioO6; } if ((waveDev.DriverOutputChannelCount > 6) && (maxChannels > 6)) { outs[6] = ioO7; } if ((waveDev.DriverOutputChannelCount > 7) && (maxChannels > 7)) { outs[7] = ioO8; } setChannels(outs, ins); if (waveProvider == null) { waveProvider = new NAudioShortWaveProvider(this); } waveProvider.SetWaveFormat(owner.sampleRate, toDriverChannels); if (fromDriverChannels == 0) { waveDev.InitRecordAndPlayback(waveProvider, 0, owner.sampleRate); } else if (toDriverChannels == 0) { waveDev.InitRecordAndPlayback(null, fromDriverChannels, owner.sampleRate); } else { waveDev.InitRecordAndPlayback(waveProvider, fromDriverChannels, owner.sampleRate); } if (fromDriverChannels > 0) { waveDev.AudioAvailable += ASIO_AudioAvailable; } waveDev.Play(); if (fromDriverChannels == 0) { processingType = ProcessingType.SynchronousSource; } else { processingType = ProcessingType.SynchronousSink; } owner.logText(String.Format("ASIO Device {0} open", driverNames[selectedDriver])); return(SinkSourceMode.Online); } catch (Exception e) { owner.showLogWin(); owner.logText(e.Message); return(SinkSourceMode.Error); } }
public void InitializeComponent() { this.ioSel = new AudioProcessor.RTIO(); this.ioO = new AudioProcessor.RTIO(); this.ioI1 = new AudioProcessor.RTIO(); this.ioI0 = new AudioProcessor.RTIO(); this.SuspendLayout(); // // ioSel // this.ioSel.contactBackColor = System.Drawing.Color.Black; this.ioSel.contactColor = System.Drawing.Color.DimGray; this.ioSel.Location = new System.Drawing.Point(0, 79); this.ioSel.Name = "ioSel"; this.ioSel.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioSel.showTitle = true; this.ioSel.Size = new System.Drawing.Size(57, 20); this.ioSel.TabIndex = 10; this.ioSel.Text = "rtio5"; this.ioSel.title = "sel"; this.ioSel.titleColor = System.Drawing.Color.DimGray; this.ioSel.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioSel.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // ioO // this.ioO.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.ioO.contactBackColor = System.Drawing.Color.Black; this.ioO.contactColor = System.Drawing.Color.DimGray; this.ioO.Location = new System.Drawing.Point(63, 27); this.ioO.Name = "ioO"; this.ioO.orientation = AudioProcessor.RTIO.RTOrientation.East; this.ioO.showTitle = true; this.ioO.Size = new System.Drawing.Size(52, 20); this.ioO.TabIndex = 9; this.ioO.Text = "rtio3"; this.ioO.title = "Out"; this.ioO.titleColor = System.Drawing.Color.DimGray; this.ioO.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioO.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalOutput; // // ioI1 // this.ioI1.contactBackColor = System.Drawing.Color.Black; this.ioI1.contactColor = System.Drawing.Color.DimGray; this.ioI1.Location = new System.Drawing.Point(0, 53); this.ioI1.Name = "ioI1"; this.ioI1.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioI1.showTitle = true; this.ioI1.Size = new System.Drawing.Size(57, 20); this.ioI1.TabIndex = 8; this.ioI1.Text = "rtio2"; this.ioI1.title = "In(1)"; this.ioI1.titleColor = System.Drawing.Color.DimGray; this.ioI1.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioI1.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // ioI0 // this.ioI0.contactBackColor = System.Drawing.Color.Black; this.ioI0.contactColor = System.Drawing.Color.DimGray; this.ioI0.Location = new System.Drawing.Point(0, 27); this.ioI0.Name = "ioI0"; this.ioI0.orientation = AudioProcessor.RTIO.RTOrientation.West; this.ioI0.showTitle = true; this.ioI0.Size = new System.Drawing.Size(57, 20); this.ioI0.TabIndex = 7; this.ioI0.Text = "rtio1"; this.ioI0.title = "In(0)"; this.ioI0.titleColor = System.Drawing.Color.DimGray; this.ioI0.titleFont = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.ioI0.IOtype = AudioProcessor.RTIO.ProcessingIOType.SignalInput; // // VMux // this.canShrink = false; this.Controls.Add(this.ioSel); this.Controls.Add(this.ioO); this.Controls.Add(this.ioI1); this.Controls.Add(this.ioI0); this.hasActiveSwitch = false; this.Name = "VMux"; this.Size = new System.Drawing.Size(115, 106); this.title = "VMux"; this.ResumeLayout(false); }