public void ProcessOffNote(NoteEvent offNote)
 {
     if (hotkeys.GetKeybindFromNoteByte(offNote.note) is FFXIVKeybindDat.Keybind keybind)
     {
         if (WantsHold)
         {
             hook.SendKeybindUp(keybind);
         }
         chordNotes.OffKey(offNote);
     }
 }
Exemple #2
0
        private void OffMidiVoice(Object o, NoteEvent offNote)
        {
            if (LocalOrchestra.OrchestraEnabled)
            {
                LocalOrchestra.ProcessOffNote(offNote);
                return;
            }

            if (Player.Status == PlayerStatus.Conducting)
            {
                return;
            }

            if (!FFXIV.IsPerformanceReady())
            {
                return;
            }

            if (offNote.track != null)
            {
                if (offNote.track != Player.Player.LoadedTrack)
                {
                    return;
                }
            }

            if (WantsSlow)
            {
                return;
            }

            if (!FFXIV.memory.ChatInputOpen)
            {
                if (WantsHold)
                {
                    if (FFXIV.hotkeys.GetKeybindFromNoteByte(offNote.note) is FFXIVKeybindDat.Keybind keybind)
                    {
                        FFXIV.hook.SendKeybindUp(keybind);
                    }
                    chordNotes.OffKey(offNote);
                }
            }
        }