예제 #1
0
파일: Note.cs 프로젝트: xiangyuan/ZRhythm
 public static Note GenerateNote(NoteType type)
 {
     return(new Note {
         InstanceID = NoteUtility.GetInstanceID(),
         type = type,
         Xoffset = 0,
         lenght = 1,
         position = -1,
     });
 }
예제 #2
0
파일: Note.cs 프로젝트: xiangyuan/ZRhythm
        /// <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();
        }