public BeamDirection GetBeatDirection(Beat beat) { ScoreBeatGlyph g = (ScoreBeatGlyph)GetOnNotesPosition(beat.Voice.Index, beat.Index); if (g != null) { return(g.NoteHeads.Direction); } return(BeamDirection.Up); }
public override float GetNoteX(Note note, bool onEnd = true) { ScoreBeatGlyph g = (ScoreBeatGlyph)GetOnNotesPosition(note.Beat.Voice.Index, note.Beat.Index); if (g != null) { return(g.Container.X + g.X + g.NoteHeads.GetNoteX(note, onEnd)); } return(0); }
public override float GetNoteY(Note note) { ScoreBeatGlyph beat = (ScoreBeatGlyph)GetOnNotesGlyphForBeat(note.Beat); if (beat != null) { return(beat.NoteHeads.GetNoteY(note)); } return(0); }
public override float GetNoteY(Note note) { ScoreBeatGlyph beat = (ScoreBeatGlyph)GetOnNotesPosition(note.Beat.Voice.Index, note.Beat.Index); if (beat != null) { return(beat.NoteHeads.GetNoteY(note)); } return(0); }
public BeamDirection GetBeatDirection(Beat beat) { ScoreBeatGlyph g = (ScoreBeatGlyph)GetOnNotesGlyphForBeat(beat); if (g != null) { return(g.NoteHeads.Direction); } return(BeamDirection.Up); }
public override float GetNoteX(Note note, bool onEnd = true) { ScoreBeatGlyph g = (ScoreBeatGlyph)GetOnNotesGlyphForBeat(note.Beat); if (g != null) { return(g.Container.X + g.Container.OnTimeX); } return(0); }
public override float GetNoteX(Note note, bool onEnd = true) { ScoreBeatGlyph g = (ScoreBeatGlyph)GetOnNotesGlyphForBeat(note.Beat); if (g != null) { var x = g.Container.VoiceContainer.X + g.Container.X + g.X; if (onEnd) { x += g.Width; } return(x); } return(0); }
public void SimpleSubclass() { var glyph = new ScoreBeatGlyph(); AssertEquals(glyph.GetType().Name, "ScoreBeatGlyph"); }