AlphaTab.Model.Beat.GetNoteOnString C# (CSharp) Method

GetNoteOnString() public method

public GetNoteOnString ( int @string ) : Note
@string int
return Note
        public Note GetNoteOnString(int @string)
        {
            for (int i = 0, j = Notes.Count; i < j; i++)
            {
                var note = Notes[i];
                if (note.String == @string)
                {
                    return note;
                }
            }
            return null;
        }