Pārlūkot izejas kodu

MIDIDevice::send cable input is optional (defaults to cable 0)

main
PaulStoffregen pirms 7 gadiem
vecāks
revīzija
c07d78de13
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      USBHost_t36.h

+ 1
- 1
USBHost_t36.h Parādīt failu

sendControlChange(99, 0x7F, channel, cable); sendControlChange(99, 0x7F, channel, cable);
sendControlChange(98, 0x7F, channel, cable); sendControlChange(98, 0x7F, channel, cable);
} }
void send(uint8_t type, uint8_t data1, uint8_t data2, uint8_t channel, uint8_t cable) {
void send(uint8_t type, uint8_t data1, uint8_t data2, uint8_t channel, uint8_t cable=0) {
//if (cable >= MIDI_NUM_CABLES) return; //if (cable >= MIDI_NUM_CABLES) return;
if (type < 0xF0) { if (type < 0xF0) {
if (type < 0x80) return; if (type < 0x80) return;

Notiek ielāde…
Atcelt
Saglabāt