/// <summary> /// Old constructor, currently not used (03.05.2020), but retained for future inspection /// </summary> public OutputChordSymbol(Voice voice, MidiChordDef umcd, int absMsPosition, PageFormat pageFormat) : base(voice, umcd.MsDuration, absMsPosition, pageFormat.MinimumCrotchetDuration, pageFormat.MusicFontHeight) { M.Assert(false); // 03.05.2020: don't use this constructor (to be inspected once work on midi info begins). _midiChordDef = umcd; _msDurationToNextBarline = umcd.MsDurationToNextBarline; SetNoteheadPitchesAndVelocities(umcd.NotatedMidiPitches, umcd.NotatedMidiVelocities); if (!String.IsNullOrEmpty(umcd.OrnamentText)) { string ornamentString = null; if (Char.IsDigit(umcd.OrnamentText[0])) { // if umcd.OrnamentText is null or empty, there will be no ornamentString DrawObject ornamentString = String.Concat('~', umcd.OrnamentText); } else { ornamentString = umcd.OrnamentText; } OrnamentText ornamentText = new OrnamentText(this, ornamentString, pageFormat.OrnamentFontHeight); DrawObjects.Add(ornamentText); } if (umcd.Lyric != null) { LyricText lyric = new LyricText(this, umcd.Lyric, FontHeight); DrawObjects.Add(lyric); } }
public InputChordSymbol(Voice voice, InputChordDef umcd, int minimumCrotchetDurationMS, float fontSize) : base(voice, umcd.MsDuration, umcd.MsPosition, minimumCrotchetDurationMS, fontSize) { _inputChordDef = umcd; _msDurationToNextBarline = umcd.MsDurationToNextBarline; SetNoteheadPitches(umcd.NotatedMidiPitches); if (umcd.Lyric != null) { LyricText lyricText = new LyricText(this, umcd.Lyric, FontHeight); DrawObjects.Add(lyricText); } }
public InputChordSymbol(Voice voice, InputChordDef umcd, int absMsPosition, int minimumCrotchetDurationMS, float fontSize) : base(voice, umcd.MsDuration, absMsPosition, minimumCrotchetDurationMS, umcd.BeamContinues, fontSize) { _inputChordDef = umcd; _msDurationToNextBarline = umcd.MsDurationToNextBarline; SetNoteheadPitches(umcd.NotatedMidiPitches); if(umcd.Lyric != null) { LyricText lyricText = new LyricText(this, umcd.Lyric, FontHeight); DrawObjects.Add(lyricText); } if(umcd.Dynamic != null) { DynamicText dynamicText = new DynamicText(this, umcd.Dynamic, FontHeight); DrawObjects.Add(dynamicText); } }
public OutputChordSymbol(Voice voice, MidiChordDef umcd, int minimumCrotchetDurationMS, float fontSize) : base(voice, umcd.MsDuration, umcd.MsPosition, minimumCrotchetDurationMS, fontSize) { _midiChordDef = umcd; _msDurationToNextBarline = umcd.MsDurationToNextBarline; SetNoteheadPitches(umcd.NotatedMidiPitches); if(umcd.OrnamentNumberSymbol != 0) { OrnamentText ornamentText = new OrnamentText(this, "~" + umcd.OrnamentNumberSymbol.ToString(), FontHeight); DrawObjects.Add(ornamentText); } if(umcd.Lyric != null) { LyricText lyric = new LyricText(this, umcd.Lyric, FontHeight); DrawObjects.Add(lyric); } }
public OutputChordSymbol(Voice voice, MidiChordDef umcd, int minimumCrotchetDurationMS, float fontSize) : base(voice, umcd.MsDuration, umcd.MsPosition, minimumCrotchetDurationMS, fontSize) { _midiChordDef = umcd; _msDurationToNextBarline = umcd.MsDurationToNextBarline; SetNoteheadPitches(umcd.NotatedMidiPitches); if (umcd.OrnamentNumberSymbol != 0) { OrnamentText ornamentText = new OrnamentText(this, "~" + umcd.OrnamentNumberSymbol.ToString(), FontHeight); DrawObjects.Add(ornamentText); } if (umcd.Lyric != null) { LyricText lyric = new LyricText(this, umcd.Lyric, FontHeight); DrawObjects.Add(lyric); } }