Пример #1
0
 public static void PlayNote(MusicalNote note, MusicalNoteValue duration, uint bpm)
 {
     uint Return1 = 0;
     uint Return2 = 0;
     uint Return3 = 0;
     uint Return4 = 0;
     Call(Kernel.Shared.SystemCalls.PlayNote, (uint)note, (uint)duration, bpm, ref Return1, ref Return2, ref Return3, ref Return4);
 }
Пример #2
0
        public static void PlayNote(MusicalNote note, MusicalNoteValue duration, uint bpm)
        {
            uint Return1 = 0;
            uint Return2 = 0;
            uint Return3 = 0;
            uint Return4 = 0;

            Call(Kernel.Shared.SystemCalls.PlayNote, (uint)note, (uint)duration, bpm, ref Return1, ref Return2, ref Return3, ref Return4);
        }
Пример #3
0
        public void PlayNote(MusicalNote note, MusicalNoteValue duration, uint bpm)
        {
            uint dur_ms = (uint)duration * 60 * 1000 / (bpm * 16);

            if (note == MusicalNote.Silent)
            {
                Wait(dur_ms);
            }
            else
            {
                PlaySound((int)note);
                Wait(dur_ms);
                MuteSound();
            }
        }
Пример #4
0
        public void PlayNote(MusicalNote note, MusicalNoteValue duration, uint bpm)
        {
            uint dur_ms = (uint)duration * 60 * 1000 / (bpm * 16);

            if (note == MusicalNote.Silent)
            {
                Wait(dur_ms);
            }
            else
            {
                PlaySound((int)note);
                Wait(dur_ms);
                MuteSound();
            }
        }
Пример #5
0
 /// <summary>Initializes a new instance of the <seealso cref="RhythmicalValue"/> struct.</summary>
 /// <param name="value">The musical note value.</param>
 /// <param name="dots">The dots that multiply the rhythmical value.</param>
 /// <param name="count">The count of notes that add up the rhythmical value.</param>
 public RhythmicalValue(MusicalNoteValue value, int dots, int count = 1)
 {
     NoteValue = value;
     Dots      = dots;
     Count     = count;
 }