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; } }
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(); } }
private void btnFFBTest_Click(object sender, RoutedEventArgs e) { ExternalControllersChest.getChest().GamepadController.flashFFB(); }