override public void Draw(double x) { double lineDiff = parent.LineDiff; int k0 = parent.MyClef.NoteNumberOfLowestLine; double y = parent.NoteToY(k0) - lineDiff * ((Rest.Type == Rest.RestType.div1) ? 3 : 2); parent.SpriteBatch.Draw( texture[(int)Rest.Type], new Vector2((float)x, (float)parent.Viewport.RateToRelativeY(y)), null, Color.White, 0f, origin[(int)Rest.Type], getScale(lineDiff), SpriteEffects.None, 0f); }
override public void Draw(double x) { double lineDiff = parent.LineDiff; float y = (float)parent.Viewport.RateToRelativeY(parent.NoteToY(Note.getKey())); Line2DRenderer lineRenderer = Line2DRenderer.GetInstance(); parent.SpriteBatch.Draw( texture[(int)Note.Type], new Vector2((float)x, y), null, Color.White, 0f, origin[(int)Note.Type], getScale(lineDiff), SpriteEffects.None, 0f); }