diff options
author | umi <57262844+umi-umi@users.noreply.github.com> | 2021-02-01 12:51:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 12:51:46 +0900 |
commit | 72f9c4c0d31d34de4876d0388b5b294f7572acd7 (patch) | |
tree | 1826d70e64dd69aa9aa620f6a0ac7bb65e5a7b82 | |
parent | 6bec7fb3fe7a9495b3a45f8145e9f3f830c72763 (diff) | |
download | qmk_firmware-72f9c4c0d31d34de4876d0388b5b294f7572acd7.tar.gz qmk_firmware-72f9c4c0d31d34de4876d0388b5b294f7572acd7.zip |
[Docs] Japanese translation of internals_*.md (#10316)
* add git checkout internals_related.md translation
* update based on comment
* unify the end of sentence
-rw-r--r-- | docs/ja/internals_defines.md | 78 | ||||
-rw-r--r-- | docs/ja/internals_midi_device.md | 148 | ||||
-rw-r--r-- | docs/ja/internals_midi_device_setup_process.md | 36 | ||||
-rw-r--r-- | docs/ja/internals_midi_util.md | 59 | ||||
-rw-r--r-- | docs/ja/internals_send_functions.md | 246 | ||||
-rw-r--r-- | docs/ja/internals_sysex_tools.md | 66 |
6 files changed, 633 insertions, 0 deletions
diff --git a/docs/ja/internals_defines.md b/docs/ja/internals_defines.md new file mode 100644 index 000000000..512730df7 --- /dev/null +++ b/docs/ja/internals_defines.md | |||
@@ -0,0 +1,78 @@ | |||
1 | # `defines` グループ {#group__defines} | ||
2 | |||
3 | ## 概要 | ||
4 | |||
5 | メンバー | 説明 | ||
6 | --------------------------------|--------------------------------------------- | ||
7 | `define `[`SYSEX_BEGIN`](#group__defines_1ga1a3c39bb790dda8a368c4247caabcf79) | | ||
8 | `define `[`SYSEX_END`](#group__defines_1ga753706d1d28e6f96d7caf1973e80feed) | | ||
9 | `define `[`MIDI_STATUSMASK`](#group__defines_1gab78a1c818a5f5dab7a8946543f126c69) | | ||
10 | `define `[`MIDI_CHANMASK`](#group__defines_1ga239edc0a6f8405d3a8f2804f1590b909) | | ||
11 | `define `[`MIDI_CC`](#group__defines_1ga45f116a1daab76b3c930c2cecfaef215) | | ||
12 | `define `[`MIDI_NOTEON`](#group__defines_1gafd416f27bf3590868c0c1f55c30be4c7) | | ||
13 | `define `[`MIDI_NOTEOFF`](#group__defines_1gabed24bea2d989fd655e2ef2ad0765adc) | | ||
14 | `define `[`MIDI_AFTERTOUCH`](#group__defines_1ga3a322d8cfd53576a2e167c1840551b0f) | | ||
15 | `define `[`MIDI_PITCHBEND`](#group__defines_1gabcc799504e8064679bca03f232223af4) | | ||
16 | `define `[`MIDI_PROGCHANGE`](#group__defines_1gaefb3f1595ffbb9db66b46c2c919a3d42) | | ||
17 | `define `[`MIDI_CHANPRESSURE`](#group__defines_1gaeb3281cc7fcd0daade8ed3d2dfc33dbe) | | ||
18 | `define `[`MIDI_CLOCK`](#group__defines_1gafa5e4e295aafd15ab7893344599b3b89) | | ||
19 | `define `[`MIDI_TICK`](#group__defines_1ga3b99408ff864613765d4c3c2ceb52aa7) | | ||
20 | `define `[`MIDI_START`](#group__defines_1ga8233631c85823aa546f932ad8975caa4) | | ||
21 | `define `[`MIDI_CONTINUE`](#group__defines_1gab24430f0081e27215b0da84dd0ee745c) | | ||
22 | `define `[`MIDI_STOP`](#group__defines_1ga3af9271d4b1f0d22904a0b055f48cf62) | | ||
23 | `define `[`MIDI_ACTIVESENSE`](#group__defines_1gacd88ed42dba52bb4b2052c5656362677) | | ||
24 | `define `[`MIDI_RESET`](#group__defines_1ga02947f30ca62dc332fdeb10c5868323b) | | ||
25 | `define `[`MIDI_TC_QUARTERFRAME`](#group__defines_1gaaa072f33590e236d1bfd8f28e833ae31) | | ||
26 | `define `[`MIDI_SONGPOSITION`](#group__defines_1ga412f6ed33a2150051374bee334ee1705) | | ||
27 | `define `[`MIDI_SONGSELECT`](#group__defines_1gafcab254838b028365ae0259729e72c4e) | | ||
28 | `define `[`MIDI_TUNEREQUEST`](#group__defines_1ga8100b907b8c0a84e58b1c53dcd9bd795) | | ||
29 | `define `[`SYSEX_EDUMANUFID`](#group__defines_1ga5ef855ed955b00a2239ca16afbeb164f) | | ||
30 | |||
31 | ## メンバー | ||
32 | |||
33 | #### `define `[`SYSEX_BEGIN`](#group__defines_1ga1a3c39bb790dda8a368c4247caabcf79) {#group__defines_1ga1a3c39bb790dda8a368c4247caabcf79} | ||
34 | |||
35 | #### `define `[`SYSEX_END`](#group__defines_1ga753706d1d28e6f96d7caf1973e80feed) {#group__defines_1ga753706d1d28e6f96d7caf1973e80feed} | ||
36 | |||
37 | #### `define `[`MIDI_STATUSMASK`](#group__defines_1gab78a1c818a5f5dab7a8946543f126c69) {#group__defines_1gab78a1c818a5f5dab7a8946543f126c69} | ||
38 | |||
39 | #### `define `[`MIDI_CHANMASK`](#group__defines_1ga239edc0a6f8405d3a8f2804f1590b909) {#group__defines_1ga239edc0a6f8405d3a8f2804f1590b909} | ||
40 | |||
41 | #### `define `[`MIDI_CC`](#group__defines_1ga45f116a1daab76b3c930c2cecfaef215) {#group__defines_1ga45f116a1daab76b3c930c2cecfaef215} | ||
42 | |||
43 | #### `define `[`MIDI_NOTEON`](#group__defines_1gafd416f27bf3590868c0c1f55c30be4c7) {#group__defines_1gafd416f27bf3590868c0c1f55c30be4c7} | ||
44 | |||
45 | #### `define `[`MIDI_NOTEOFF`](#group__defines_1gabed24bea2d989fd655e2ef2ad0765adc) {#group__defines_1gabed24bea2d989fd655e2ef2ad0765adc} | ||
46 | |||
47 | #### `define `[`MIDI_AFTERTOUCH`](#group__defines_1ga3a322d8cfd53576a2e167c1840551b0f) {#group__defines_1ga3a322d8cfd53576a2e167c1840551b0f} | ||
48 | |||
49 | #### `define `[`MIDI_PITCHBEND`](#group__defines_1gabcc799504e8064679bca03f232223af4) {#group__defines_1gabcc799504e8064679bca03f232223af4} | ||
50 | |||
51 | #### `define `[`MIDI_PROGCHANGE`](#group__defines_1gaefb3f1595ffbb9db66b46c2c919a3d42) {#group__defines_1gaefb3f1595ffbb9db66b46c2c919a3d42} | ||
52 | |||
53 | #### `define `[`MIDI_CHANPRESSURE`](#group__defines_1gaeb3281cc7fcd0daade8ed3d2dfc33dbe) {#group__defines_1gaeb3281cc7fcd0daade8ed3d2dfc33dbe} | ||
54 | |||
55 | #### `define `[`MIDI_CLOCK`](#group__defines_1gafa5e4e295aafd15ab7893344599b3b89) {#group__defines_1gafa5e4e295aafd15ab7893344599b3b89} | ||
56 | |||
57 | #### `define `[`MIDI_TICK`](#group__defines_1ga3b99408ff864613765d4c3c2ceb52aa7) {#group__defines_1ga3b99408ff864613765d4c3c2ceb52aa7} | ||
58 | |||
59 | #### `define `[`MIDI_START`](#group__defines_1ga8233631c85823aa546f932ad8975caa4) {#group__defines_1ga8233631c85823aa546f932ad8975caa4} | ||
60 | |||
61 | #### `define `[`MIDI_CONTINUE`](#group__defines_1gab24430f0081e27215b0da84dd0ee745c) {#group__defines_1gab24430f0081e27215b0da84dd0ee745c} | ||
62 | |||
63 | #### `define `[`MIDI_STOP`](#group__defines_1ga3af9271d4b1f0d22904a0b055f48cf62) {#group__defines_1ga3af9271d4b1f0d22904a0b055f48cf62} | ||
64 | |||
65 | #### `define `[`MIDI_ACTIVESENSE`](#group__defines_1gacd88ed42dba52bb4b2052c5656362677) {#group__defines_1gacd88ed42dba52bb4b2052c5656362677} | ||
66 | |||
67 | #### `define `[`MIDI_RESET`](#group__defines_1ga02947f30ca62dc332fdeb10c5868323b) {#group__defines_1ga02947f30ca62dc332fdeb10c5868323b} | ||
68 | |||
69 | #### `define `[`MIDI_TC_QUARTERFRAME`](#group__defines_1gaaa072f33590e236d1bfd8f28e833ae31) {#group__defines_1gaaa072f33590e236d1bfd8f28e833ae31} | ||
70 | |||
71 | #### `define `[`MIDI_SONGPOSITION`](#group__defines_1ga412f6ed33a2150051374bee334ee1705) {#group__defines_1ga412f6ed33a2150051374bee334ee1705} | ||
72 | |||
73 | #### `define `[`MIDI_SONGSELECT`](#group__defines_1gafcab254838b028365ae0259729e72c4e) {#group__defines_1gafcab254838b028365ae0259729e72c4e} | ||
74 | |||
75 | #### `define `[`MIDI_TUNEREQUEST`](#group__defines_1ga8100b907b8c0a84e58b1c53dcd9bd795) {#group__defines_1ga8100b907b8c0a84e58b1c53dcd9bd795} | ||
76 | |||
77 | #### `define `[`SYSEX_EDUMANUFID`](#group__defines_1ga5ef855ed955b00a2239ca16afbeb164f) {#group__defines_1ga5ef855ed955b00a2239ca16afbeb164f} | ||
78 | |||
diff --git a/docs/ja/internals_midi_device.md b/docs/ja/internals_midi_device.md new file mode 100644 index 000000000..6adc2d5ad --- /dev/null +++ b/docs/ja/internals_midi_device.md | |||
@@ -0,0 +1,148 @@ | |||
1 | # `midi_device` グループ {#group__midi__device} | ||
2 | |||
3 | <!--- | ||
4 | original document: 0.10.9:docs/internals_midi_device.md | ||
5 | git diff 0.10.9 HEAD -- docs/internals_midi_device.md | cat | ||
6 | --> | ||
7 | |||
8 | 独自の MIDI デバイスを実装する時に、関数を使います。 | ||
9 | |||
10 | 実際にデバイスを介してバイトを送信するために、送信関数を設定します。このメソッドは、このデバイスで例えば midi_send_cc のような送信関数を呼ぶ時に呼ばれます。 | ||
11 | |||
12 | midi_device_input を使ってデバイスからの入力データを処理し、それをデバイスに関連付けられたコールバックで渡します。 | ||
13 | |||
14 | デバイスのプロセス関数の最初に呼び出される関数が必要な場合、midi_device_set_pre_input_process_func を使います。通常、入力をポーリングして midi_device_input に渡します。 | ||
15 | |||
16 | ## 概要 | ||
17 | |||
18 | メンバー | 説明 | ||
19 | --------------------------------|--------------------------------------------- | ||
20 | `define `[`MIDI_INPUT_QUEUE_LENGTH`](#group__midi__device_1ga4aaa419caebdca2bbdfc1331e79781a8) | | ||
21 | `enum `[`input_state_t`](#group__midi__device_1gac203e877d3df4275ceb8e7180a61f621) | | ||
22 | `public void `[`midi_device_input`](#group__midi__device_1gad8d3db8eb35d9cfa51ef036a0a9d70db)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t cnt,uint8_t * input)` | 入力バイトを処理します。この関数はバイトを解析し、指定されたデバイスに関連する適切なコールバックを呼びます。この関数は、カスタムデバイスを作成していて、MIDI 入力が必要な場合に使います。 | ||
23 | `public void `[`midi_device_set_send_func`](#group__midi__device_1ga59f5a46bdd4452f186cc73d9e96d4673)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_var_byte_func_t send_func)` | 出力データバイトの送信に使われるコールバック関数を設定します。これは、カスタムデバイスを作成している場合のみ使われます。ロックを気にすることなく様々な MIDI 送信関数を呼び出すことができるように、コールバック関数で割り込みを無効にすることができます。 | ||
24 | `public void `[`midi_device_set_pre_input_process_func`](#group__midi__device_1ga4de0841b87c04fc23cb56b6451f33b69)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_no_byte_func_t pre_process_func)` | midi_device_process 呼び出しの最初に呼ばれるコールバックを設定します。これは入力データをポーリングし、midi_device_input 関数を介してデータを送信できます。カスタムデバイスを作成している場合のみ、これを使う可能性があります。 | ||
25 | `struct `[`_midi_device`](docs/api_midi_device.md#struct__midi__device) | この構造体は、MIDI デバイスの入出力関数と処理データを表します。 | ||
26 | |||
27 | ## メンバー | ||
28 | |||
29 | #### `define `[`MIDI_INPUT_QUEUE_LENGTH`](#group__midi__device_1ga4aaa419caebdca2bbdfc1331e79781a8) {#group__midi__device_1ga4aaa419caebdca2bbdfc1331e79781a8} | ||
30 | |||
31 | #### `enum `[`input_state_t`](#group__midi__device_1gac203e877d3df4275ceb8e7180a61f621) {#group__midi__device_1gac203e877d3df4275ceb8e7180a61f621} | ||
32 | |||
33 | 値 | 説明 | ||
34 | --------------------------------|--------------------------------------------- | ||
35 | IDLE | | ||
36 | ONE_BYTE_MESSAGE | | ||
37 | TWO_BYTE_MESSAGE | | ||
38 | THREE_BYTE_MESSAGE | | ||
39 | SYSEX_MESSAGE | | ||
40 | |||
41 | #### `public void `[`midi_device_input`](#group__midi__device_1gad8d3db8eb35d9cfa51ef036a0a9d70db)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t cnt,uint8_t * input)` {#group__midi__device_1gad8d3db8eb35d9cfa51ef036a0a9d70db} | ||
42 | |||
43 | 入力バイトを処理します。この関数はバイトを解析し、指定されたデバイスに関連する適切なコールバックを呼びます。この関数は、カスタムデバイスを作成していて、MIDI 入力が必要な場合に使います。 | ||
44 | |||
45 | #### パラメータ | ||
46 | * `device` 入力を関連付ける MIDI デバイス | ||
47 | |||
48 | * `cnt` 処理中のバイト数 | ||
49 | |||
50 | * `input` 処理するバイトデータ | ||
51 | |||
52 | #### `public void `[`midi_device_set_send_func`](#group__midi__device_1ga59f5a46bdd4452f186cc73d9e96d4673)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_var_byte_func_t send_func)` {#group__midi__device_1ga59f5a46bdd4452f186cc73d9e96d4673} | ||
53 | |||
54 | 出力データバイトの送信に使われるコールバック関数を設定します。これは、カスタムデバイスを作成している場合のみ使われます。ロックを気にすることなく様々な MIDI 送信関数を呼び出すことができるように、コールバック関数で割り込みを無効にすることができます。 | ||
55 | |||
56 | #### パラメータ | ||
57 | * `device` このコールバックを関連付ける MIDI デバイス | ||
58 | |||
59 | * `send_func` 送信を行うコールバック関数 | ||
60 | |||
61 | #### `public void `[`midi_device_set_pre_input_process_func`](#group__midi__device_1ga4de0841b87c04fc23cb56b6451f33b69)`(`[`MidiDevice`](#struct__midi__device)` * device,midi_no_byte_func_t pre_process_func)` {#group__midi__device_1ga4de0841b87c04fc23cb56b6451f33b69} | ||
62 | |||
63 | midi_device_process 呼び出しの最初に呼ばれるコールバックを設定します。これは入力データをポーリングし、midi_device_input 関数を介してデータを送信できます。カスタムデバイスを作成している場合のみ、これを使う可能性があります。 | ||
64 | |||
65 | #### パラメータ | ||
66 | * `device` このコールバックを関連付ける MIDI デバイス | ||
67 | |||
68 | * `midi_no_byte_func_t` 実際のコールバック関数 | ||
69 | |||
70 | # `_midi_device` 構造体 {#struct__midi__device} | ||
71 | |||
72 | この構造体は、MIDI デバイスの入出力関数と処理データを表します。 | ||
73 | |||
74 | デバイスは、実際の物理デバイス [シリアルポート、USB ポート]、または仮想デバイスを表すことができます。この構造体を直接変更する必要はありません。 | ||
75 | |||
76 | ## 概要 | ||
77 | |||
78 | | メンバー | 説明 | ||
79 | --------------------------------|--------------------------------------------- | ||
80 | `public midi_var_byte_func_t `[`send_func`](docs/api_midi_device.md#struct__midi__device_1a25d4c94b4bbccd5b98f1032b469f3ff9) | | ||
81 | `public midi_three_byte_func_t `[`input_cc_callback`](docs/api_midi_device.md#struct__midi__device_1a6da5236c1bc73877728df92d213a78d1) | | ||
82 | `public midi_three_byte_func_t `[`input_noteon_callback`](docs/api_midi_device.md#struct__midi__device_1aa10b15cf1a7fb825a5df0d2abbe34a1c) | | ||
83 | `public midi_three_byte_func_t `[`input_noteoff_callback`](docs/api_midi_device.md#struct__midi__device_1aaf290043078534d3a5a0ea4c840eba84) | | ||
84 | `public midi_three_byte_func_t `[`input_aftertouch_callback`](docs/api_midi_device.md#struct__midi__device_1acb0b4901c545cec4b28b126f2d8c315f) | | ||
85 | `public midi_three_byte_func_t `[`input_pitchbend_callback`](docs/api_midi_device.md#struct__midi__device_1a305fea672caeb996f2233bf8cd2bef18) | | ||
86 | `public midi_three_byte_func_t `[`input_songposition_callback`](docs/api_midi_device.md#struct__midi__device_1a5f3f13638b3fef3fc561ed1bf301d586) | | ||
87 | `public midi_two_byte_func_t `[`input_progchange_callback`](docs/api_midi_device.md#struct__midi__device_1adaf1da617c9a10a9dcad00ab1959d3da) | | ||
88 | `public midi_two_byte_func_t `[`input_chanpressure_callback`](docs/api_midi_device.md#struct__midi__device_1ab7ca2925c539915d43974eff604d85f7) | | ||
89 | `public midi_two_byte_func_t `[`input_songselect_callback`](docs/api_midi_device.md#struct__midi__device_1a89bed8a5a55376120cfc0a62b42f057f) | | ||
90 | `public midi_two_byte_func_t `[`input_tc_quarterframe_callback`](docs/api_midi_device.md#struct__midi__device_1ad9813e75d22e284f9f65a907d20600f0) | | ||
91 | `public midi_one_byte_func_t `[`input_realtime_callback`](docs/api_midi_device.md#struct__midi__device_1a9448eba4afb7e43650434748db3777be) | | ||
92 | `public midi_one_byte_func_t `[`input_tunerequest_callback`](docs/api_midi_device.md#struct__midi__device_1a0cb8fd53e00cf1d4202d4fa04d038e8d) | | ||
93 | `public midi_sysex_func_t `[`input_sysex_callback`](docs/api_midi_device.md#struct__midi__device_1afff9a0ce641762aaef24c1e6953ec9a2) | | ||
94 | `public midi_var_byte_func_t `[`input_fallthrough_callback`](docs/api_midi_device.md#struct__midi__device_1abb974ec6d734001b4a0e370f292be503) | | ||
95 | `public midi_var_byte_func_t `[`input_catchall_callback`](docs/api_midi_device.md#struct__midi__device_1aae0d535129d4fd650edc98eb3f7584f8) | | ||
96 | `public midi_no_byte_func_t `[`pre_input_process_callback`](docs/api_midi_device.md#struct__midi__device_1aeb0bb8923d66c23d874e177dc4265754) | | ||
97 | `public uint8_t `[`input_buffer`](docs/api_midi_device.md#struct__midi__device_1a7c5684857d6af4ebc4dc12da27bd6b2a) | | ||
98 | `public input_state_t `[`input_state`](docs/api_midi_device.md#struct__midi__device_1a69a687d2d1c449ec15a11c07a5722e39) | | ||
99 | `public uint16_t `[`input_count`](docs/api_midi_device.md#struct__midi__device_1a68dea8e7b6151e89c85c95caa612ee5d) | | ||
100 | `public uint8_t `[`input_queue_data`](docs/api_midi_device.md#struct__midi__device_1ada41de021135dc423abedcbb30f366ff) | | ||
101 | `public `[`byteQueue_t`](#structbyte_queue__t)` `[`input_queue`](#struct__midi__device_1a49c8538a8a02193c58e28a56eb695d8f) | | ||
102 | |||
103 | ## メンバー | ||
104 | |||
105 | #### `public midi_var_byte_func_t `[`send_func`](docs/api_midi_device.md#struct__midi__device_1a25d4c94b4bbccd5b98f1032b469f3ff9) {#struct__midi__device_1a25d4c94b4bbccd5b98f1032b469f3ff9} | ||
106 | |||
107 | #### `public midi_three_byte_func_t `[`input_cc_callback`](docs/api_midi_device.md#struct__midi__device_1a6da5236c1bc73877728df92d213a78d1) {#struct__midi__device_1a6da5236c1bc73877728df92d213a78d1} | ||
108 | |||
109 | #### `public midi_three_byte_func_t `[`input_noteon_callback`](docs/api_midi_device.md#struct__midi__device_1aa10b15cf1a7fb825a5df0d2abbe34a1c) {#struct__midi__device_1aa10b15cf1a7fb825a5df0d2abbe34a1c} | ||
110 | |||
111 | #### `public midi_three_byte_func_t `[`input_noteoff_callback`](docs/api_midi_device.md#struct__midi__device_1aaf290043078534d3a5a0ea4c840eba84) {#struct__midi__device_1aaf290043078534d3a5a0ea4c840eba84} | ||
112 | |||
113 | #### `public midi_three_byte_func_t `[`input_aftertouch_callback`](docs/api_midi_device.md#struct__midi__device_1acb0b4901c545cec4b28b126f2d8c315f) {#struct__midi__device_1acb0b4901c545cec4b28b126f2d8c315f} | ||
114 | |||
115 | #### `public midi_three_byte_func_t `[`input_pitchbend_callback`](docs/api_midi_device.md#struct__midi__device_1a305fea672caeb996f2233bf8cd2bef18) {#struct__midi__device_1a305fea672caeb996f2233bf8cd2bef18} | ||
116 | |||
117 | #### `public midi_three_byte_func_t `[`input_songposition_callback`](docs/api_midi_device.md#struct__midi__device_1a5f3f13638b3fef3fc561ed1bf301d586) {#struct__midi__device_1a5f3f13638b3fef3fc561ed1bf301d586} | ||
118 | |||
119 | #### `public midi_two_byte_func_t `[`input_progchange_callback`](docs/api_midi_device.md#struct__midi__device_1adaf1da617c9a10a9dcad00ab1959d3da) {#struct__midi__device_1adaf1da617c9a10a9dcad00ab1959d3da} | ||
120 | |||
121 | #### `public midi_two_byte_func_t `[`input_chanpressure_callback`](docs/api_midi_device.md#struct__midi__device_1ab7ca2925c539915d43974eff604d85f7) {#struct__midi__device_1ab7ca2925c539915d43974eff604d85f7} | ||
122 | |||
123 | #### `public midi_two_byte_func_t `[`input_songselect_callback`](docs/api_midi_device.md#struct__midi__device_1a89bed8a5a55376120cfc0a62b42f057f) {#struct__midi__device_1a89bed8a5a55376120cfc0a62b42f057f} | ||
124 | |||
125 | #### `public midi_two_byte_func_t `[`input_tc_quarterframe_callback`](docs/api_midi_device.md#struct__midi__device_1ad9813e75d22e284f9f65a907d20600f0) {#struct__midi__device_1ad9813e75d22e284f9f65a907d20600f0} | ||
126 | |||
127 | #### `public midi_one_byte_func_t `[`input_realtime_callback`](docs/api_midi_device.md#struct__midi__device_1a9448eba4afb7e43650434748db3777be) {#struct__midi__device_1a9448eba4afb7e43650434748db3777be} | ||
128 | |||
129 | #### `public midi_one_byte_func_t `[`input_tunerequest_callback`](docs/api_midi_device.md#struct__midi__device_1a0cb8fd53e00cf1d4202d4fa04d038e8d) {#struct__midi__device_1a0cb8fd53e00cf1d4202d4fa04d038e8d} | ||
130 | |||
131 | #### `public midi_sysex_func_t `[`input_sysex_callback`](docs/api_midi_device.md#struct__midi__device_1afff9a0ce641762aaef24c1e6953ec9a2) {#struct__midi__device_1afff9a0ce641762aaef24c1e6953ec9a2} | ||
132 | |||
133 | #### `public midi_var_byte_func_t `[`input_fallthrough_callback`](docs/api_midi_device.md#struct__midi__device_1abb974ec6d734001b4a0e370f292be503) {#struct__midi__device_1abb974ec6d734001b4a0e370f292be503} | ||
134 | |||
135 | #### `public midi_var_byte_func_t `[`input_catchall_callback`](docs/api_midi_device.md#struct__midi__device_1aae0d535129d4fd650edc98eb3f7584f8) {#struct__midi__device_1aae0d535129d4fd650edc98eb3f7584f8} | ||
136 | |||
137 | #### `public midi_no_byte_func_t `[`pre_input_process_callback`](docs/api_midi_device.md#struct__midi__device_1aeb0bb8923d66c23d874e177dc4265754) {#struct__midi__device_1aeb0bb8923d66c23d874e177dc4265754} | ||
138 | |||
139 | #### `public uint8_t `[`input_buffer`](docs/api_midi_device.md#struct__midi__device_1a7c5684857d6af4ebc4dc12da27bd6b2a) {#struct__midi__device_1a7c5684857d6af4ebc4dc12da27bd6b2a} | ||
140 | |||
141 | #### `public input_state_t `[`input_state`](docs/api_midi_device.md#struct__midi__device_1a69a687d2d1c449ec15a11c07a5722e39) {#struct__midi__device_1a69a687d2d1c449ec15a11c07a5722e39} | ||
142 | |||
143 | #### `public uint16_t `[`input_count`](docs/api_midi_device.md#struct__midi__device_1a68dea8e7b6151e89c85c95caa612ee5d) {#struct__midi__device_1a68dea8e7b6151e89c85c95caa612ee5d} | ||
144 | |||
145 | #### `public uint8_t `[`input_queue_data`](docs/api_midi_device.md#struct__midi__device_1ada41de021135dc423abedcbb30f366ff) {#struct__midi__device_1ada41de021135dc423abedcbb30f366ff} | ||
146 | |||
147 | #### `public `[`byteQueue_t`](#structbyte_queue__t)` `[`input_queue`](#struct__midi__device_1a49c8538a8a02193c58e28a56eb695d8f) {#struct__midi__device_1a49c8538a8a02193c58e28a56eb695d8f} | ||
148 | |||
diff --git a/docs/ja/internals_midi_device_setup_process.md b/docs/ja/internals_midi_device_setup_process.md new file mode 100644 index 000000000..980615645 --- /dev/null +++ b/docs/ja/internals_midi_device_setup_process.md | |||
@@ -0,0 +1,36 @@ | |||
1 | # `midi_device_setup_process` グループ {#group__midi__device__setup__process} | ||
2 | |||
3 | <!--- | ||
4 | original document: 0.10.9:docs/internals_midi_device_setup_process.md | ||
5 | git diff 0.10.9 HEAD -- docs/internals_midi_device_setup_process.md | cat | ||
6 | --> | ||
7 | |||
8 | これらは、デバイスを初期化して実行するために使う必要があるメソッドです。 | ||
9 | |||
10 | ## 概要 | ||
11 | |||
12 | メンバー | 説明 | ||
13 | --------------------------------|--------------------------------------------- | ||
14 | `public void `[`midi_device_init`](#group__midi__device__setup__process_1gaf29deddc94ea98a59daa0bde1aefd9d9)`(`[`MidiDevice`](#struct__midi__device)` * device)` | デバイスを初期化します。 | ||
15 | `public void `[`midi_device_process`](#group__midi__device__setup__process_1gaa3d5993d0e998a1b59bbf5ab9c7b492b)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 入力データを処理します。 | ||
16 | |||
17 | ## メンバー | ||
18 | |||
19 | #### `public void `[`midi_device_init`](#group__midi__device__setup__process_1gaf29deddc94ea98a59daa0bde1aefd9d9)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__midi__device__setup__process_1gaf29deddc94ea98a59daa0bde1aefd9d9} | ||
20 | |||
21 | デバイスを初期化します。 | ||
22 | |||
23 | 問題のデバイスを使う前にこれを呼び出す必要があります。 | ||
24 | |||
25 | #### パラメータ | ||
26 | * `device` 初期化するデバイス | ||
27 | |||
28 | #### `public void `[`midi_device_process`](#group__midi__device__setup__process_1gaa3d5993d0e998a1b59bbf5ab9c7b492b)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__midi__device__setup__process_1gaa3d5993d0e998a1b59bbf5ab9c7b492b} | ||
29 | |||
30 | 入力データを処理します。 | ||
31 | |||
32 | このメソッドは入力処理を駆動します。入力コールバックが呼び出されることが予想される場合は、このメソッドを頻繁に呼び出す必要があります。 | ||
33 | |||
34 | #### パラメータ | ||
35 | * `device` 処理するデバイス | ||
36 | |||
diff --git a/docs/ja/internals_midi_util.md b/docs/ja/internals_midi_util.md new file mode 100644 index 000000000..5ff9870df --- /dev/null +++ b/docs/ja/internals_midi_util.md | |||
@@ -0,0 +1,59 @@ | |||
1 | # `midi_util` グループ {#group__midi__util} | ||
2 | |||
3 | <!--- | ||
4 | original document: 0.10.9:docs/internals_midi_util.md | ||
5 | git diff 0.10.9 HEAD -- docs/internals_midi_util.md | cat | ||
6 | --> | ||
7 | |||
8 | ## 概要 | ||
9 | |||
10 | | メンバー | 説明 | ||
11 | --------------------------------|--------------------------------------------- | ||
12 | | `enum `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e) | 可能なパケット長の値の列挙型。 | ||
13 | | `public bool `[`midi_is_statusbyte`](#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5)`(uint8_t theByte)` | 指定されたバイトがステータスバイトであるかどうかを検査します。 | ||
14 | | `public bool `[`midi_is_realtime`](#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7)`(uint8_t theByte)` | 指定されたバイトがリアルタイムメッセージであるかどうかを検査します。 | ||
15 | | `public `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e)` `[`midi_packet_length`](#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175)`(uint8_t status)` | 指定されたステータスバイトに関連付けられたパケットの長さを調べます。 | ||
16 | |||
17 | ## メンバー | ||
18 | |||
19 | #### `enum `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e) {#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e} | ||
20 | |||
21 | | 値 | 説明 | ||
22 | --------------------------------|--------------------------------------------- | ||
23 | UNDEFINED | | ||
24 | ONE | | ||
25 | TWO | | ||
26 | THREE | | ||
27 | |||
28 | 可能なパケット長の値の列挙型。 | ||
29 | |||
30 | #### `public bool `[`midi_is_statusbyte`](#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5)`(uint8_t theByte)` {#group__midi__util_1ga12e3b42ff9cbb4b4f2bc455fc8743ee5} | ||
31 | |||
32 | 指定されたバイトがステータスバイトであるかどうかを検査します。 | ||
33 | |||
34 | #### パラメータ | ||
35 | * `theByte` 検査するバイト | ||
36 | |||
37 | #### 返り値 | ||
38 | 指定されたバイトが MIDI ステータスバイトの場合は true | ||
39 | |||
40 | #### `public bool `[`midi_is_realtime`](#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7)`(uint8_t theByte)` {#group__midi__util_1gad2f52c363e34a8000d80c983c324e2d7} | ||
41 | |||
42 | 指定されたバイトがリアルタイムメッセージであるかどうかを検査します。 | ||
43 | |||
44 | #### パラメータ | ||
45 | * `theByte` 検査するバイト | ||
46 | |||
47 | #### 返り値 | ||
48 | リアルタイムメッセージの場合は true、それ以外の場合は false | ||
49 | |||
50 | #### `public `[`midi_packet_length_t`](#group__midi__util_1gae29ff56aee2b430ffe53933b97e5e79e)` `[`midi_packet_length`](#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175)`(uint8_t status)` {#group__midi__util_1gaa168b43af6ae9de0debce1625e4b8175} | ||
51 | |||
52 | 指定されたステータスバイトに関連付けられたパケットの長さを調べます。 | ||
53 | |||
54 | #### パラメータ | ||
55 | * `status` ステータスバイト | ||
56 | |||
57 | #### 返り値 | ||
58 | パケットの長さ。バイトがステータスバイトではない場合、あるいは sysex ステータスバイトの場合は、UNDEFINED を返します。 | ||
59 | |||
diff --git a/docs/ja/internals_send_functions.md b/docs/ja/internals_send_functions.md new file mode 100644 index 000000000..2747d3997 --- /dev/null +++ b/docs/ja/internals_send_functions.md | |||
@@ -0,0 +1,246 @@ | |||
1 | # `send_functions` グループ {#group__send__functions} | ||
2 | |||
3 | <!--- | ||
4 | original document: 0.10.9:docs/internals_send_functions.md | ||
5 | git diff 0.10.9 HEAD -- docs/internals_send_functions.md | cat | ||
6 | --> | ||
7 | |||
8 | これらは、デバイスを介して MIDI データを送信するために使う関数です。 | ||
9 | |||
10 | ## 概要 | ||
11 | |||
12 | メンバー | 説明 | ||
13 | --------------------------------|--------------------------------------------- | ||
14 | `public void `[`midi_send_cc`](#group__send__functions_1gaaf884811c92df405ca8fe1a00082f960)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t val)` | 指定されたデバイスを介して、コントロールチェンジメッセージを送信します。 | ||
15 | `public void `[`midi_send_noteon`](#group__send__functions_1ga467bcf46dbf03ec269ce565b46bc2775)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` | 指定されたデバイスを介してノートオンメッセージを送信します。 | ||
16 | `public void `[`midi_send_noteoff`](#group__send__functions_1gaedb7d8805425eef5d47d57ddcb4c7a49)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` | 指定されたデバイスを介してノートオフメッセージを送信します。 | ||
17 | `public void `[`midi_send_aftertouch`](#group__send__functions_1ga0014847571317a0e34b2ef46a6bc584f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t note_num,uint8_t amt)` | 指定されたデバイスを介してアフタータッチメッセージを送信します。 | ||
18 | `public void `[`midi_send_pitchbend`](#group__send__functions_1gae5a4a1e71611e7534be80af9ce3d3491)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,int16_t amt)` | 指定されたデバイスを介してピッチベンドメッセージを送信します。 | ||
19 | `public void `[`midi_send_programchange`](#group__send__functions_1ga7b15588ef25e5e1ff09c2afc3151ce86)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num)` | 指定されたデバイスを介してプログラムチェンジメッセージを送信します。 | ||
20 | `public void `[`midi_send_channelpressure`](#group__send__functions_1gaf23e69fdf812e89c0036f51f88ab2e1b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t amt)` | 指定されたデバイスを介してチャンネルプレッシャーメッセージを送信します。 | ||
21 | `public void `[`midi_send_clock`](#group__send__functions_1ga4e1b11a7cdb0875f6e03ce7c79c581aa)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してクロックメッセージを送信します。 | ||
22 | `public void `[`midi_send_tick`](#group__send__functions_1ga2b43c7d433d940c5b907595aac947972)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してティックメッセージを送信します。 | ||
23 | `public void `[`midi_send_start`](#group__send__functions_1ga1569749a8d58ccc56789289d7c7245cc)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してスタートメッセージを送信します。 | ||
24 | `public void `[`midi_send_continue`](#group__send__functions_1gaed5dc29d754a27372e89ab8bc20ee120)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してコンティニューメッセージを送信します。 | ||
25 | `public void `[`midi_send_stop`](#group__send__functions_1ga026e1a620276cb653ac501aa0d12a988)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してストップメッセージを送信します。 | ||
26 | `public void `[`midi_send_activesense`](#group__send__functions_1ga9b6e4c6ce4719d2604187b325620db37)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してアクティブセンスメッセージを送信します。 | ||
27 | `public void `[`midi_send_reset`](#group__send__functions_1ga3671e39a6d93ca9568fc493001af1b1b)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してリセットメッセージを送信します。 | ||
28 | `public void `[`midi_send_tcquarterframe`](#group__send__functions_1ga5b85639910eec280bb744c934d0fd45a)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t time)` | 指定されたデバイスを介してタイムコードクォータフレームメッセージを送信します。 | ||
29 | `public void `[`midi_send_songposition`](#group__send__functions_1gab1c9eeef3b57a8cd2e6128d18e85eb7f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t pos)` | 指定されたデバイスを介してソングポジションメッセージを送信します。 | ||
30 | `public void `[`midi_send_songselect`](#group__send__functions_1ga42de7838ba70d949af9a50f9facc3c50)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t song)` | 指定されたデバイスを介してソングセレクトメッセージを送信します。 | ||
31 | `public void `[`midi_send_tunerequest`](#group__send__functions_1ga8db6c7e04d48e4d2266dd59118ca0656)`(`[`MidiDevice`](#struct__midi__device)` * device)` | 指定されたデバイスを介してチューンリクエストメッセージを送信します。 | ||
32 | `public void `[`midi_send_byte`](#group__send__functions_1ga857e85eb90b288385642d4d991e09881)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t b)` | 指定されたデバイスを介してバイトを送信します。 | ||
33 | `public void `[`midi_send_data`](#group__send__functions_1ga36e2f2e45369d911b76969361679054b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t byte0,uint8_t byte1,uint8_t byte2)` | 最大3バイトのデータを送信します。 | ||
34 | `public void `[`midi_send_array`](#group__send__functions_1ga245243cb1da18d2cea18d4b18d846ead)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t * array)` | フォーマットされた MIDI データの配列を送信します。 | ||
35 | |||
36 | ## メンバー | ||
37 | |||
38 | #### `public void `[`midi_send_cc`](#group__send__functions_1gaaf884811c92df405ca8fe1a00082f960)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t val)` {#group__send__functions_1gaaf884811c92df405ca8fe1a00082f960} | ||
39 | |||
40 | 指定されたデバイスを介して、コントロールチェンジメッセージ(cc)を送信します。 | ||
41 | |||
42 | #### パラメータ | ||
43 | * `device` 送信に使うデバイス | ||
44 | |||
45 | * `chan` 送信するチャンネル、0-15 | ||
46 | |||
47 | * `num` コントロールチェンジナンバー | ||
48 | |||
49 | * `val` コントロールチェンジナンバーの値 | ||
50 | |||
51 | #### `public void `[`midi_send_noteon`](#group__send__functions_1ga467bcf46dbf03ec269ce565b46bc2775)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` {#group__send__functions_1ga467bcf46dbf03ec269ce565b46bc2775} | ||
52 | |||
53 | 指定されたデバイスを介してノートオンメッセージを送信します。 | ||
54 | |||
55 | #### パラメータ | ||
56 | * `device` 送信に使うデバイス | ||
57 | |||
58 | * `chan` 送信するチャンネル、0-15 | ||
59 | |||
60 | * `num` ノート番号 | ||
61 | |||
62 | * `vel` ノートベロシティ | ||
63 | |||
64 | #### `public void `[`midi_send_noteoff`](#group__send__functions_1gaedb7d8805425eef5d47d57ddcb4c7a49)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num,uint8_t vel)` {#group__send__functions_1gaedb7d8805425eef5d47d57ddcb4c7a49} | ||
65 | |||
66 | 指定されたデバイスを介してノートオフメッセージを送信します。 | ||
67 | |||
68 | #### パラメータ | ||
69 | * `device` 送信に使うデバイス | ||
70 | |||
71 | * `chan` 送信するチャンネル、0-15 | ||
72 | |||
73 | * `num` ノート番号 | ||
74 | |||
75 | * `vel` ノートベロシティ | ||
76 | |||
77 | #### `public void `[`midi_send_aftertouch`](#group__send__functions_1ga0014847571317a0e34b2ef46a6bc584f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t note_num,uint8_t amt)` {#group__send__functions_1ga0014847571317a0e34b2ef46a6bc584f} | ||
78 | |||
79 | 指定されたデバイスを介してアフタータッチメッセージを送信します。 | ||
80 | |||
81 | #### パラメータ | ||
82 | * `device` 送信に使うデバイス | ||
83 | |||
84 | * `chan` 送信するチャンネル、0-15 | ||
85 | |||
86 | * `note_num` ノート番号 | ||
87 | |||
88 | * `amt` アフタータッチ量 | ||
89 | |||
90 | #### `public void `[`midi_send_pitchbend`](#group__send__functions_1gae5a4a1e71611e7534be80af9ce3d3491)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,int16_t amt)` {#group__send__functions_1gae5a4a1e71611e7534be80af9ce3d3491} | ||
91 | |||
92 | 指定されたデバイスを介してピッチベンドメッセージを送信します。 | ||
93 | |||
94 | #### パラメータ | ||
95 | * `device` 送信に使うデバイス | ||
96 | |||
97 | * `chan` 送信するチャンネル、0-15 | ||
98 | |||
99 | * `amt` ベンド量の範囲: -8192..8191、0 はベンドしないことを意味します | ||
100 | |||
101 | #### `public void `[`midi_send_programchange`](#group__send__functions_1ga7b15588ef25e5e1ff09c2afc3151ce86)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t num)` {#group__send__functions_1ga7b15588ef25e5e1ff09c2afc3151ce86} | ||
102 | |||
103 | 指定されたデバイスを介してプログラムチェンジメッセージを送信します。 | ||
104 | |||
105 | #### パラメータ | ||
106 | * `device` 送信に使うデバイス | ||
107 | |||
108 | * `chan` 送信するチャンネル、0-15 | ||
109 | |||
110 | * `num` 変更先のプログラム | ||
111 | |||
112 | #### `public void `[`midi_send_channelpressure`](#group__send__functions_1gaf23e69fdf812e89c0036f51f88ab2e1b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t chan,uint8_t amt)` {#group__send__functions_1gaf23e69fdf812e89c0036f51f88ab2e1b} | ||
113 | |||
114 | 指定されたデバイスを介してチャンネルプレッシャーメッセージを送信します。 | ||
115 | |||
116 | #### パラメータ | ||
117 | * `device` 送信に使うデバイス | ||
118 | |||
119 | * `chan` 送信するチャンネル、0-15 | ||
120 | |||
121 | * `amt` チャンネルプレッシャーの量 | ||
122 | |||
123 | #### `public void `[`midi_send_clock`](#group__send__functions_1ga4e1b11a7cdb0875f6e03ce7c79c581aa)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga4e1b11a7cdb0875f6e03ce7c79c581aa} | ||
124 | |||
125 | 指定されたデバイスを介してクロックメッセージを送信します。 | ||
126 | |||
127 | #### パラメータ | ||
128 | * `device` 送信に使うデバイス | ||
129 | |||
130 | #### `public void `[`midi_send_tick`](#group__send__functions_1ga2b43c7d433d940c5b907595aac947972)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga2b43c7d433d940c5b907595aac947972} | ||
131 | |||
132 | 指定されたデバイスを介してティックメッセージを送信します。 | ||
133 | |||
134 | #### パラメータ | ||
135 | * `device` 送信に使うデバイス | ||
136 | |||
137 | #### `public void `[`midi_send_start`](#group__send__functions_1ga1569749a8d58ccc56789289d7c7245cc)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga1569749a8d58ccc56789289d7c7245cc} | ||
138 | |||
139 | 指定されたデバイスを介してスタートメッセージを送信します。 | ||
140 | |||
141 | #### パラメータ | ||
142 | * `device` 送信に使うデバイス | ||
143 | |||
144 | #### `public void `[`midi_send_continue`](#group__send__functions_1gaed5dc29d754a27372e89ab8bc20ee120)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1gaed5dc29d754a27372e89ab8bc20ee120} | ||
145 | |||
146 | 指定されたデバイスを介してコンティニューメッセージを送信します。 | ||
147 | |||
148 | #### パラメータ | ||
149 | * `device` 送信に使うデバイス | ||
150 | |||
151 | #### `public void `[`midi_send_stop`](#group__send__functions_1ga026e1a620276cb653ac501aa0d12a988)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga026e1a620276cb653ac501aa0d12a988} | ||
152 | |||
153 | 指定されたデバイスを介してストップメッセージを送信します。 | ||
154 | |||
155 | #### パラメータ | ||
156 | * `device` 送信に使うデバイス | ||
157 | |||
158 | #### `public void `[`midi_send_activesense`](#group__send__functions_1ga9b6e4c6ce4719d2604187b325620db37)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga9b6e4c6ce4719d2604187b325620db37} | ||
159 | |||
160 | 指定されたデバイスを介してアクティブセンスメッセージを送信します。 | ||
161 | |||
162 | #### パラメータ | ||
163 | * `device` 送信に使うデバイス | ||
164 | |||
165 | #### `public void `[`midi_send_reset`](#group__send__functions_1ga3671e39a6d93ca9568fc493001af1b1b)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga3671e39a6d93ca9568fc493001af1b1b} | ||
166 | |||
167 | 指定されたデバイスを介してリセットメッセージを送信します。 | ||
168 | |||
169 | #### パラメータ | ||
170 | * `device` 送信に使うデバイス | ||
171 | |||
172 | #### `public void `[`midi_send_tcquarterframe`](#group__send__functions_1ga5b85639910eec280bb744c934d0fd45a)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t time)` {#group__send__functions_1ga5b85639910eec280bb744c934d0fd45a} | ||
173 | |||
174 | 指定されたデバイスを介してタイムコードクォータフレームメッセージを送信します。 | ||
175 | |||
176 | #### パラメータ | ||
177 | * `device` 送信に使うデバイス | ||
178 | |||
179 | * `time` このクォータフレームの時間。範囲は、0..16383 | ||
180 | |||
181 | #### `public void `[`midi_send_songposition`](#group__send__functions_1gab1c9eeef3b57a8cd2e6128d18e85eb7f)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t pos)` {#group__send__functions_1gab1c9eeef3b57a8cd2e6128d18e85eb7f} | ||
182 | |||
183 | 指定されたデバイスを介してソングポジションメッセージを送信します。 | ||
184 | |||
185 | #### パラメータ | ||
186 | * `device` 送信に使うデバイス | ||
187 | |||
188 | * `pos` ソングポジション | ||
189 | |||
190 | #### `public void `[`midi_send_songselect`](#group__send__functions_1ga42de7838ba70d949af9a50f9facc3c50)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t song)` {#group__send__functions_1ga42de7838ba70d949af9a50f9facc3c50} | ||
191 | |||
192 | 指定されたデバイスを介してソングセレクトメッセージを送信します。 | ||
193 | |||
194 | #### パラメータ | ||
195 | * `device` 送信に使うデバイス | ||
196 | |||
197 | * `song` 選択するソング | ||
198 | |||
199 | #### `public void `[`midi_send_tunerequest`](#group__send__functions_1ga8db6c7e04d48e4d2266dd59118ca0656)`(`[`MidiDevice`](#struct__midi__device)` * device)` {#group__send__functions_1ga8db6c7e04d48e4d2266dd59118ca0656} | ||
200 | |||
201 | 指定されたデバイスを介してチューンリクエストメッセージを送信します。 | ||
202 | |||
203 | #### パラメータ | ||
204 | * `device` 送信に使うデバイス | ||
205 | |||
206 | #### `public void `[`midi_send_byte`](#group__send__functions_1ga857e85eb90b288385642d4d991e09881)`(`[`MidiDevice`](#struct__midi__device)` * device,uint8_t b)` {#group__send__functions_1ga857e85eb90b288385642d4d991e09881} | ||
207 | |||
208 | 指定されたデバイスを介してバイトを送信します。 | ||
209 | |||
210 | これは、指定された MIDI デバイスを介してデータを送信する一般的なメソッドです。これは、この API に実装されていない sysex データまたはメッセージがある場合、それらを送信するのに役立ちます。そのようなものを見つけた場合は、私たちがそれらを追加できるように、作者に連絡してください。 | ||
211 | |||
212 | #### パラメータ | ||
213 | * `device` 送信に使うデバイス | ||
214 | |||
215 | * `b` 送信するバイト | ||
216 | |||
217 | #### `public void `[`midi_send_data`](#group__send__functions_1ga36e2f2e45369d911b76969361679054b)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t byte0,uint8_t byte1,uint8_t byte2)` {#group__send__functions_1ga36e2f2e45369d911b76969361679054b} | ||
218 | |||
219 | 最大3バイトのデータを送信します。 | ||
220 | |||
221 | これを使って sysex を通過できるように count に4の剰余が適用されます。 | ||
222 | |||
223 | #### パラメータ | ||
224 | * `device` 送信に使うデバイス | ||
225 | |||
226 | * `count` 送信するバイト数、4の剰余が適用されます | ||
227 | |||
228 | * `byte0` 最初のバイト | ||
229 | |||
230 | * `byte1` 2番目のバイト。cnt % 4 != 2 の場合は無視されます | ||
231 | |||
232 | * `byte2` 3番目のバイト。cnt % 4 != 3 の場合は無視されます | ||
233 | |||
234 | #### `public void `[`midi_send_array`](#group__send__functions_1ga245243cb1da18d2cea18d4b18d846ead)`(`[`MidiDevice`](#struct__midi__device)` * device,uint16_t count,uint8_t * array)` {#group__send__functions_1ga245243cb1da18d2cea18d4b18d846ead} | ||
235 | |||
236 | フォーマットされた MIDI データの配列を送信します。 | ||
237 | |||
238 | sysex に使うことができます。 | ||
239 | |||
240 | #### パラメータ | ||
241 | * `device` 送信に使うデバイス | ||
242 | |||
243 | * `count` 送信するバイト数 | ||
244 | |||
245 | * `array` バイトの配列 | ||
246 | |||
diff --git a/docs/ja/internals_sysex_tools.md b/docs/ja/internals_sysex_tools.md new file mode 100644 index 000000000..629b4f244 --- /dev/null +++ b/docs/ja/internals_sysex_tools.md | |||
@@ -0,0 +1,66 @@ | |||
1 | # `sysex_tools` グループ {#group__sysex__tools} | ||
2 | |||
3 | <!--- | ||
4 | original document: 0.10.9:docs/internals_sysex_tools.md | ||
5 | git diff 0.10.9 HEAD -- docs/internals_sysex_tools.md | cat | ||
6 | --> | ||
7 | |||
8 | ## 概要 | ||
9 | |||
10 | | メンバー | 説明 | ||
11 | --------------------------------|--------------------------------------------- | ||
12 | | `public uint16_t `[`sysex_encoded_length`](#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a)`(uint16_t decoded_length)` | エンコード後のメッセージの長さを計算します。 | ||
13 | | `public uint16_t `[`sysex_decoded_length`](#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0)`(uint16_t encoded_length)` | デコード後のメッセージの長さを計算します。 | ||
14 | | `public uint16_t `[`sysex_encode`](#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742)`(uint8_t * encoded,const uint8_t * source,uint16_t length)` | sysex メッセージで安全に送信できるようにデータをエンコードします。 | ||
15 | | `public uint16_t `[`sysex_decode`](#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229)`(uint8_t * decoded,const uint8_t * source,uint16_t length)` | エンコードされたデータをデコードします。 | ||
16 | |||
17 | ## メンバー | ||
18 | |||
19 | #### `public uint16_t `[`sysex_encoded_length`](#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a)`(uint16_t decoded_length)` {#group__sysex__tools_1ga061e5607030412d6e62e2390d8013f0a} | ||
20 | |||
21 | エンコード後のメッセージの長さを計算します。 | ||
22 | |||
23 | #### パラメータ | ||
24 | * `decoded_length` エンコードするメッセージの長さのバイト数。 | ||
25 | |||
26 | #### 返り値 | ||
27 | エンコード後のメッセージの長さのバイト数。 | ||
28 | |||
29 | #### `public uint16_t `[`sysex_decoded_length`](#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0)`(uint16_t encoded_length)` {#group__sysex__tools_1ga121fc227d3acc1c0ea08c9a5c26fa3b0} | ||
30 | |||
31 | デコード後のメッセージの長さを計算します。 | ||
32 | |||
33 | #### パラメータ | ||
34 | * `encoded_length` エンコードされたメッセージの長さのバイト数。 | ||
35 | |||
36 | #### 返り値 | ||
37 | デコードされた後のメッセージの長さのバイト数。 | ||
38 | |||
39 | #### `public uint16_t `[`sysex_encode`](#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742)`(uint8_t * encoded,const uint8_t * source,uint16_t length)` {#group__sysex__tools_1ga54d77f8d32f92a6f329daefa2b314742} | ||
40 | |||
41 | sysex メッセージで安全に送信できるようにデータをエンコードします。 | ||
42 | |||
43 | #### パラメータ | ||
44 | * `encoded` 出力データバッファは、少なくとも sysex_encoded_length(length) バイトの長さが必要です。 | ||
45 | |||
46 | * `source` エンコードされるデータの入力バッファ。 | ||
47 | |||
48 | * `length` 入力バッファからエンコードするバイト数。 | ||
49 | |||
50 | #### 返り値 | ||
51 | エンコードされたバイト数。 | ||
52 | |||
53 | #### `public uint16_t `[`sysex_decode`](#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229)`(uint8_t * decoded,const uint8_t * source,uint16_t length)` {#group__sysex__tools_1gaaad1d9ba2d5eca709a0ab4ba40662229} | ||
54 | |||
55 | エンコードされたデータをデコードします。 | ||
56 | |||
57 | #### パラメータ | ||
58 | * `decoded` 出力データバッファは、少なくとも sysex_decoded_length(length) バイトの長さが必要です。 | ||
59 | |||
60 | * `source` デコードされるデータの入力バッファ。 | ||
61 | |||
62 | * `length` 入力バッファからデコードするバイト数。 | ||
63 | |||
64 | #### 返り値 | ||
65 | デコードされたバイト数。 | ||
66 | |||