Skip to content

Commit

Permalink
Replace Int32 with int and removed small code region.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgeerkens committed May 12, 2016
1 parent 90e2637 commit 69ad06a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Parser/AwareNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

namespace PGSoftwareSolutions.Qabc {
public interface IAwareNote : INote {
Int32 SpanPosition { get; }
Int32 SpanLength { get; }
Int32 SpanEndPos { get; }
int SpanPosition { get; }
int SpanLength { get; }
int SpanEndPos { get; }
}

public class AwareNote : Note, IAwareNote {
public Int32 SpanPosition { get; private set; }
public Int32 SpanLength { get; private set; }
public Int32 SpanEndPos { get; private set; }
#region Note Factory
public int SpanPosition { get; private set; }
public int SpanLength { get; private set; }
public int SpanEndPos { get; private set; }

public static AwareNote GetAwareNote(NoteLetter letter, PianoKey noteNum, SharpFlat accid,
NoteLength length, Style style, Int16 tempo, Int16 energy, SourceSpan span) {
return new AwareNote(letter, noteNum, accid, length, style, tempo, energy, span);
Expand All @@ -32,6 +32,5 @@ private AwareNote(NoteLetter letter, PianoKey noteNum, SharpFlat accid, NoteLeng
SpanLength = span.Length;
SpanEndPos = span.EndPosition;
}
#endregion Note Factory
}
}

0 comments on commit 69ad06a

Please sign in to comment.