この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
usb_midi_controller:arduino_midi_controller [2018/04/21 02:19] fifi |
usb_midi_controller:arduino_midi_controller [2018/04/21 02:19] (現在) fifi [ソースコード(2018/4/21)] |
||
---|---|---|---|
ライン 122: | ライン 122: | ||
``` | ``` | ||
+ | |||
/* | /* | ||
8chマルチプレクサ4051を使って8chVRの値を読み取る | 8chマルチプレクサ4051を使って8chVRの値を読み取る | ||
ライン 258: | ライン 259: | ||
if (checkChange(vel, tVR.Old, 1)) { | if (checkChange(vel, tVR.Old, 1)) { | ||
- | |||
- | // MIDI.sendNoteOn(0, vel, tVR.ControlNumber); // 書き出す (note no, velocity, ch) | ||
MIDI.send(midi::ControlChange, tVR.ControlNumber, vel, 1); | MIDI.send(midi::ControlChange, tVR.ControlNumber, vel, 1); | ||
ライン 265: | ライン 264: | ||
VR_List[i] = tVR; | VR_List[i] = tVR; | ||
- | // Serial.print(i); | ||
- | // Serial.print(":"); | ||
- | // Serial.print(vel); | ||
- | // Serial.print(":"); | ||
- | // Serial.print(analog); | ||
- | // Serial.println(""); // 改行 | ||
- | // delay(10); | ||
} | } | ||
} | } | ||
ライン 312: | ライン 304: | ||
return val; | return val; | ||
} | } | ||
+ | |||
``` | ``` |