public static KeyAccidental ConvertKeyAccidental(KeyAccidental _keyaccidobj, KeyAccid _keyaccid) { _keyaccidobj.AccidentalType = GetAccidentalType(_keyaccid); _keyaccidobj.PitchLocation = GetKeyAccidPitch(_keyaccid); return(_keyaccidobj); }
/// <summary> /// Gets base-40 diatonic pitch for keyAccid /// </summary> /// <param name="_keyaccid">MEI keyAccid</param> /// <returns>Base-40 int</returns> private static int GetKeyAccidPitch(KeyAccid _keyaccid) { return(ConverterHelper.ConvertToBase40(_keyaccid.GetPnameValue(), _keyaccid.GetOctValue())); }