public Stem(ChordSymbol chordSymbol, Stem stem) { Chord = chordSymbol; if (stem != null) { Direction = stem.Direction; } }
public Stem(ChordSymbol chordSymbol, Stem stem) { Chord = chordSymbol; if(stem != null) { Direction = stem.Direction; } }
public ChordSymbol(Voice voice, int msDuration, int absMsPosition, int minimumCrotchetDurationMS, bool beamContinues, float fontSize) : base(voice, msDuration, absMsPosition, minimumCrotchetDurationMS, fontSize) { // note that all chord symbols have a stem! // Even cautionary, semibreves and breves need a stem direction in order to set chord Metrics correctly. Stem = new Stem(this, beamContinues); // Beam is currently null. Create when necessary. }
public ChordSymbol(Voice voice, int msDuration, int msPosition, int minimumCrotchetDurationMS, float fontSize) : base(voice, msDuration, msPosition, minimumCrotchetDurationMS, fontSize) { // note that all chord symbols have a stem! // Even cautionary, semibreves and breves need a stem direction in order to set chord Metrics correctly. Stem = new Stem(this); // Beam is currently null. Create when necessary. }
/// <summary> /// Old constructor, currently not used (03.05.2020), but retained for future inspection /// </summary> public ChordSymbol(Voice voice, int msDuration, int absMsPosition, int minimumCrotchetDurationMS, double fontSize) : base(voice, msDuration, absMsPosition, minimumCrotchetDurationMS, fontSize) { M.Assert(false); // 03.05.2020: don't use this constructor (to be inspected once work on midi info begins). // note that all chord symbols have a stem! // Even cautionary, semibreves and breves need a stem direction in order to set chord Metrics correctly. Stem = new Stem(this); // Beam is currently null. Create when necessary. }
public ChordSymbol(Voice voice, int msDuration, int absMsPosition, MNX.Common.Event mnxEventDef, double fontSize) : base(voice, msDuration, absMsPosition, mnxEventDef.MNXDurationSymbol, fontSize) { // note that all chord symbols have a stem! // Even cautionary, semibreves and breves need a stem direction in order to set chord Metrics correctly. Stem = new Stem(this); IsBeamStart = mnxEventDef.IsBeamStart; IsBeamRestart = mnxEventDef.IsBeamRestart; IsBeamEnd = mnxEventDef.IsBeamEnd; OctaveShift = mnxEventDef.OctaveShift; EndOctaveShift = mnxEventDef.EndOctaveShift; TicksPosInScore = mnxEventDef.TicksPosInScore; TicksDuration = mnxEventDef.TicksDuration; SlurDefs = mnxEventDef.SlurDefs; // can be null TupletDefs = mnxEventDef.TupletDefs; // can be null EventID = mnxEventDef.ID; // Beam is currently null. Create when necessary. }