public MML(List <Part> partList, string title, int countsPerWholeNote, MMLStyle style) { PartList = partList; Title = title; CountsPerWholeNote = countsPerWholeNote; Style = style; }
public override void UpdateSelections(MMLStyle mmlStyle) { this.mmlStyle = mmlStyle; panel2.Enabled = checkBox1.Checked; groupBox1.Enabled = false; comboBox1.Items.Clear(); switch (mmlStyle) { case MMLStyle.FMP7: comboBox1.Items.AddRange(new string[] { Resources.PanP, Resources.PanPLPCPR }); comboBox1.SelectedIndex = settings.CommandFMP7; groupBox1.Enabled = true; label2.Enabled = false; textBox1.Enabled = false; label3.Enabled = false; textBox2.Enabled = false; label4.Enabled = false; textBox3.Enabled = false; label5.Enabled = false; textBox4.Enabled = false; groupBox2.Enabled = false; break; case MMLStyle.Custom: comboBox1.Items.AddRange(new string[] { Resources.PanMIDI, Resources.PanLCR }); comboBox1.SelectedIndex = settings.CommandCustom; groupBox1.Enabled = true; if (comboBox1.SelectedIndex == 0) { label2.Enabled = true; textBox1.Enabled = true; label3.Enabled = false; textBox2.Enabled = false; label4.Enabled = false; textBox3.Enabled = false; label5.Enabled = false; textBox4.Enabled = false; groupBox2.Enabled = false; } else if (comboBox1.SelectedIndex == 1) { label2.Enabled = false; textBox1.Enabled = false; label3.Enabled = true; textBox2.Enabled = true; label4.Enabled = true; textBox3.Enabled = true; label5.Enabled = true; textBox4.Enabled = true; groupBox2.Enabled = true; } break; default: groupBox2.Enabled = true; break; } }
public NoteRestPanel2(Settings.NoteRest settings, MMLStyle mmlStyle) { InitializeComponent(); this.settings = settings; this.mmlStyle = mmlStyle; }
public PanPanel(Settings.ControlCommand.Pan settings, MMLStyle mmlStyle) { InitializeComponent(); this.settings = settings; this.mmlStyle = mmlStyle; }
public OutputPartPanel(Settings.OutputPart settings, MMLStyle mmlStyle) { InitializeComponent(); this.settings = settings; this.mmlStyle = mmlStyle; partDataGridView1.Settings = settings; partDataGridView1.MMLStyle = mmlStyle; }
public override void UpdateSelections(MMLStyle mmlStyle) { this.mmlStyle = mmlStyle; panel2.Enabled = checkBox1.Checked; if (this.mmlStyle == MMLStyle.Custom) { comboBox1.Visible = false; textBox1.Visible = true; panel3.Enabled = true; panel4.Enabled = false; } else { comboBox1.Visible = true; textBox1.Visible = false; comboBox1.Items.Clear(); switch (this.mmlStyle) { case MMLStyle.FMP7: case MMLStyle.FMP: case MMLStyle.MUCOM88: case MMLStyle.Mml2vgm: panel2.Enabled = false; break; case MMLStyle.PMD: comboBox1.Items.AddRange(new string[] { "v", "V" }); comboBox1.SelectedIndex = settings.CommandPMD; panel3.Enabled = false; panel4.Enabled = false; break; case MMLStyle.MXDRV: comboBox1.Items.AddRange(new string[] { "v", "@v" }); comboBox1.SelectedIndex = settings.CommandMXDRV; panel3.Enabled = false; panel4.Enabled = false; break; case MMLStyle.NRTDRV: comboBox1.Items.AddRange(new string[] { "v", "V" }); comboBox1.SelectedIndex = settings.CommandNRTDRV; panel3.Enabled = false; panel4.Enabled = (comboBox1.SelectedIndex == 0); break; default: break; } } }
private void UpdatePanel2(MMLStyle mmlStyle) { switch (mmlStyle) { case MMLStyle.Custom: case MMLStyle.FMP: panel2.Enabled = false; break; default: panel2.Enabled = true; break; } }
public override void UpdateSelections(MMLStyle mmlStyle) { this.mmlStyle = mmlStyle; comboBox2.Items.Clear(); switch (this.mmlStyle) { case MMLStyle.MXDRV: case MMLStyle.NRTDRV: case MMLStyle.MUCOM88: comboBox2.Items.AddRange(new string[] { Resources.TieLengthStyleC4AndC16, Resources.TieLengthStyleC4Hat16 }); break; default: comboBox2.Items.AddRange(new string[] { Resources.TieLengthStyleC4AndC16, Resources.TieLengthStyleC4And16 }); break; } comboBox2.SelectedIndex = settings.TieStyle; if (mmlStyle == MMLStyle.Custom) { label4.Enabled = true; textBox1.Enabled = true; } else { label4.Enabled = false; textBox1.Enabled = false; } switch (mmlStyle) { case MMLStyle.FMP: case MMLStyle.FMP7: case MMLStyle.Mml2vgm: checkBox3.Enabled = false; break; case MMLStyle.MUCOM88: checkBox3.Enabled = (comboBox2.SelectedIndex != 0); break; default: checkBox3.Enabled = true; break; } UpdateComboBox1(comboBox2); UpdateCheckBox2(); }
public static MusicDataModifier Factory(MMLStyle mmlStyle) { MusicDataModifier instance; switch (mmlStyle) { case MMLStyle.Custom: instance = new CustomMusicDataModifier(); break; case MMLStyle.FMP: instance = new FMPMusicDataModifier(); break; case MMLStyle.FMP7: instance = new FMP7MusicDataModifier(); break; case MMLStyle.MXDRV: instance = new MXDRVMusicDataModifier(); break; case MMLStyle.NRTDRV: instance = new NRTDRVMusicDataModifier(); break; case MMLStyle.PMD: instance = new PMDMusicDataModifier(); break; case MMLStyle.MUCOM88: instance = new MUCOM88MusicDataModifier(); break; case MMLStyle.Mml2vgm: instance = new Mml2vgmMusicDataModifier(); break; default: instance = null; break; } return(instance); }
public static IntermediateToMMLConverter Factory(MMLStyle mmlStyle) { IntermediateToMMLConverter instance; switch (mmlStyle) { case MMLStyle.Custom: instance = new IntermediateToCustomMMLConverter(); break; case MMLStyle.FMP: instance = new IntermediateToFMPMMLConverter(); break; case MMLStyle.FMP7: instance = new IntermediateToFMP7MMLConverter(); break; case MMLStyle.MXDRV: instance = new IntermediateToMXDRVMMLConverter(); break; case MMLStyle.NRTDRV: instance = new IntermediateToNRTDRVMMLConverter(); break; case MMLStyle.PMD: instance = new IntermediateToPMDMMLConverter(); break; case MMLStyle.MUCOM88: instance = new IntermediateToMUCOM88MMLConverter(); break; case MMLStyle.Mml2vgm: instance = new IntermediateToMml2vgmMMLConverter(); break; default: instance = null; break; } return(instance); }
public override void UpdateSelections(MMLStyle mmlstyle) { if (mmlstyle == MMLStyle.Custom) { label2.Enabled = true; textBox1.Enabled = true; } else { label2.Enabled = false; textBox1.Enabled = false; } switch (mmlstyle) { case MMLStyle.MXDRV: case MMLStyle.NRTDRV: case MMLStyle.PMD: case MMLStyle.Mml2vgm: case MMLStyle.Custom: label3.Enabled = true; comboBox2.Enabled = true; break; default: label3.Enabled = false; comboBox2.Enabled = false; break; } if (mmlstyle == MMLStyle.MUCOM88) { label6.Enabled = false; numericUpDown1.Enabled = false; label5.Enabled = false; } else { label6.Enabled = true; numericUpDown1.Enabled = true; label5.Enabled = true; } groupBox1.Enabled = checkBox1.Checked; }
public override void UpdateSelections(MMLStyle mmlStyle) { panel2.Enabled = checkBox1.Checked; panel3.Enabled = (mmlStyle == MMLStyle.Custom); }
public override void UpdateSelections(MMLStyle mmlStyle) { this.mmlStyle = mmlStyle; comboBox1.Items.Clear(); if (this.mmlStyle == MMLStyle.Custom) { comboBox1.Items.AddRange(new string[] { Resources.PartDisabled, Resources.PartCustom }); comboBox1.SelectedIndex = settings.PrintStyleCustom; } else { comboBox1.Items.AddRange(new string[] { Resources.PartDisabled, Resources.PartCustom, Resources.PartAuto }); comboBox1.SelectedIndex = settings.PrintStyle; } if (comboBox1.SelectedIndex == 2) { if (this.mmlStyle == MMLStyle.MXDRV || this.mmlStyle == MMLStyle.MUCOM88) { label2.Enabled = false; comboBox2.Enabled = false; } else { label2.Enabled = true; comboBox2.Enabled = true; } } else { label2.Enabled = false; comboBox2.Enabled = false; } comboBox2.Items.Clear(); switch (this.mmlStyle) { case MMLStyle.FMP7: comboBox2.Items.AddRange(new string[] { "ABC...XYZ", "A0B0C0...X0Y0Z0A1B1C1...", "A0A1A2...A7A8A9B0B1B2..." }); comboBox2.SelectedIndex = settings.AutoNameFMP7; break; case MMLStyle.FMP: comboBox2.Items.AddRange(new string[] { "FM: A~C | SSG: D~F | FM3ch: X~Z", "FM: A~C | SSG: D~F | FM: G~I | FM3ch: X~Z" }); comboBox2.SelectedIndex = settings.AutoNameFMP; break; case MMLStyle.PMD: comboBox2.Items.AddRange(new string[] { "FM: A~C | SSG: G~I", "FM: A~C | FM3ch: D~F | SSG: G~I", "FM: A~F | SSG: G~I | FM3ch: X~Z", "FM: A~F", "FM: A~H", "FM: A~I" }); comboBox2.SelectedIndex = settings.AutoNamePMD; break; case MMLStyle.NRTDRV: comboBox2.Items.AddRange(new string[] { "SSG: 1~3", "FM: A~P | SSG: 1~3", "FM: A~H | SSG: 1~3 | FM: I~P" }); comboBox2.SelectedIndex = settings.AutoNameNRTDRV; break; case MMLStyle.Mml2vgm: comboBox2.Items.AddRange(new string[] { "FM: F1~F6 | SSG: S1~S4", "FM: F1~F6 | FM3ch: F7~F9 | SSG: S1~S4", "FM: E01~E06 | SSG: S1~S4", "FM: E01~E06 | FM3ch: E07~E09 | SSG: S1~S4", "SSG: S1~S4", "FM: T01~T06 | SSG: T10~T12", "FM: T01~T06 | FM3ch: T07~T09 | SSG: T10~T12", "SSG: T10~T12", "FM: P01~P06 | SSG: P10~P12", "FM: P01~T06 | FM3ch: P07~P09 | SSG: P10~P12", "SSG: P10~P12", "FM: N1~N3 | SSG: N7~N9", "FM: N1~N3 | FM3ch: N4~N6 | SSG: N7~N9", "SSG: N7~N9", "FM: X1~X8", "SSG: A1~A3", "FM: L01~L09" }); comboBox2.SelectedIndex = settings.AutoNameMml2vgm; break; default: break; } checkBox1.Checked = settings.RemoveEmptyParts; ChangeOutputPartMMLSyle(mmlStyle); }
public override void UpdateSelections(MMLStyle mmlStyle) { }
public void ChangeOutputPartMMLSyle(MMLStyle style) { partDataGridView1.MMLStyle = style; partDataGridView1.ShowData(); }
public virtual void UpdateSelections(MMLStyle mmlStyle) { }
public override void UpdateSelections(MMLStyle mmlStyle) { UpdatePanel2(mmlStyle); }