public void StartGeneric() { if (enableLED) { if (synthMode) { SetLED(8, true); } else { SetLED(1, true); } } holdPanic = false; //holdDpad = false; //holdPedal = false; holdProgram = false; holdOctave = false; holdDefault = false; holdShift = false; MIDI.SendProgramChange(1, instrument); MIDI.SendProgramChange(2, instrument); MIDI.SendProgramChange(3, instrument); MIDI.SendProgramChange(4, instrument); MIDI.SendProgramChange(5, instrument); MIDI.SendProgramChange(6, instrument); HeldKey = new Dictionary <int, Tuple <int, int> >(); Loop(); }
public void StartGeneric() { if (enableLED) { if (drumMapping) { SetLED(8, true); } else { SetLED(1, true); } } holdPanic = false; holdDpad = false; holdPedal = false; holdProgram = false; holdOctave = false; MIDI.SendProgramChange(1, instrument); HeldKey = new Dictionary <int, Tuple <int, int> >(); Loop(); }
public void SetProgram(int program) { program = Math.Min(program, 128); program = Math.Max(program, 1); instrument = program; main.Invoke((MethodInvoker) delegate { main.SetProgram(instrument); }); MIDI.SendProgramChange(1, instrument); }
public void SetProgram(int program) { program = Math.Min(program, 128); program = Math.Max(program, 1); if (instrument != program) { instrument = program; main.Invoke((MethodInvoker) delegate { main.SetProgram(instrument); }); //Console.WriteLine("Set program"); MIDI.SendProgramChange(1, instrument); MIDI.SendProgramChange(2, instrument); MIDI.SendProgramChange(3, instrument); MIDI.SendProgramChange(4, instrument); MIDI.SendProgramChange(5, instrument); MIDI.SendProgramChange(6, instrument); } }