public static Note GenerateNote(NoteType type) { return(new Note { InstanceID = NoteUtility.GetInstanceID(), type = type, Xoffset = 0, lenght = 1, position = -1, }); }
/// <summary> /// <para>Default.</para> /// <para>取的預設的音符</para> /// <para>預設的音符為空音符</para> /// </summary> /// <value>The default.</value> /// 用Null取代 /*public readonly static Note Default = * new Note{ * InstanceID = NoteUtility.GetInstanceID(), * type = NoteType.Null, * Xoffset = 0, * lenght = 1, * position = -1, * };*/ public Note() { type = NoteType.Null; InstanceID = NoteUtility.GetInstanceID(); }