/// <summary> /// Gets octave of the note presented by the specified <see cref="NoteOnEvent"/>. /// </summary> /// <param name="noteEvent">Note event to get note octave of.</param> /// <returns>Note octave of the <paramref name="noteEvent"/>.</returns> /// <remarks> /// Octave number will be returned in scientific pitch notation which means /// that 4 will be returned for 60 note number. /// </remarks> /// <exception cref="ArgumentNullException"><paramref name="noteEvent"/> is null.</exception> public static int GetNoteOctave(this NoteEvent noteEvent) { ThrowIfArgument.IsNull(nameof(noteEvent), noteEvent); return(NoteUtilities.GetNoteOctave(noteEvent.NoteNumber)); }
// Token: 0x06003483 RID: 13443 RVA: 0x00018230 File Offset: 0x00016430 public static int GetNoteOctave(this NoteEvent noteEvent) { return(NoteUtilities.GetNoteOctave(noteEvent.NoteNumber)); }