Пример #1
0
        public void setNote(int note)
        {
            if (!InstrumentChest.getChest().Locked)
            {
                if (hold)
                {
                    chord.Add(note);
                    if (isBlowing)
                    {
                        AudioChest.getChest().MidiController.playNote(note, velocity);
                        ExternalControllersChest.getChest().GamepadController.flashFFB();
                    }
                }
                else
                {
                    AudioChest.getChest().MidiController.stopNote(this.note);
                    if (isBlowing)
                    {
                        AudioChest.getChest().MidiController.playNote(note, velocity);
                        ExternalControllersChest.getChest().GamepadController.flashFFB();
                    }
                }

                this.note = note;
                InstrumentChest.getChest().Note = note;
            }
        }
Пример #2
0
        public void processStartPlaying()
        {
            isBlowing = true;
            InstrumentChest.getChest().IsBlowing = true;

            if (hold)
            {
                foreach (int note in chord)
                {
                    AudioChest.getChest().MidiController.playNote(note, velocity);
                    ExternalControllersChest.getChest().GamepadController.flashFFB();
                }
            }

            else
            {
                AudioChest.getChest().MidiController.playNote(note, velocity);
                ExternalControllersChest.getChest().GamepadController.flashFFB();
            }
        }
Пример #3
0
 private void btnFFBTest_Click(object sender, RoutedEventArgs e)
 {
     ExternalControllersChest.getChest().GamepadController.flashFFB();
 }