Skip to content

Commit

Permalink
ドキュメンテーションされていない変数、コマンドの追加対応
Browse files Browse the repository at this point in the history
  • Loading branch information
r-koubou committed Jul 11, 2020
1 parent 9488257 commit e09b3b6
Show file tree
Hide file tree
Showing 12 changed files with 5,214 additions and 5,054 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,27 @@ Added Syntax highlighting.

#### Variable

- $ENGINE_PAR_LFO_RANDOM
- $EVENT_PAR_REL_VELOCITY
- $HIDE_PART_VALUE
- $NI_DETECT_INSTRUMENT_TYPE
- $NI_DETECT_INSTRUMENT_TYPE_BASS
- $NI_DETECT_INSTRUMENT_TYPE_BOWED_STRING
- $NI_DETECT_INSTRUMENT_TYPE_BRASS
- $NI_DETECT_INSTRUMENT_TYPE_FLUTE
- $NI_DETECT_INSTRUMENT_TYPE_GUITAR
- $NI_DETECT_INSTRUMENT_TYPE_INVALID
- $NI_DETECT_INSTRUMENT_TYPE_KEYBOARD
- $NI_DETECT_INSTRUMENT_TYPE_MALLET
- $NI_DETECT_INSTRUMENT_TYPE_ORGAN
- $NI_DETECT_INSTRUMENT_TYPE_PLUCKED_STRING
- $NI_DETECT_INSTRUMENT_TYPE_REED
- $NI_DETECT_INSTRUMENT_TYPE_SYNTH
- $NI_DETECT_INSTRUMENT_TYPE_VOCAL

### Command

- detect_instrument_type
- get_control_par_str_arr (Undocumented)

## Version 0.7.8

Expand Down
1 change: 1 addition & 0 deletions data/ExtractCommandFromManual.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"get_keyrange_xxx",
"if",
"it",
"low_group",
"ray_idx",
"set_condition", #lower
"range", # not exist
Expand Down
10,100 changes: 5,050 additions & 5,050 deletions data/KSP Reference Manual(6.3.0).txt

Large diffs are not rendered by default.

Binary file modified data/KSP_Completion.xlsx
Binary file not shown.
2 changes: 1 addition & 1 deletion data/extract.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setlocal

set MANUAL=KSP Reference Manual(6.0.2).txt
set MANUAL=KSP Reference Manual(6.3.0).txt

python ExtractCallbackFromManual.py "%MANUAL%" > extract_callback.txt
python ExtractCommandFromManual.py "%MANUAL%" > extract_command.txt
Expand Down
2 changes: 1 addition & 1 deletion data/extract.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

MANUAL="KSP Reference Manual(6.2.0).txt"
MANUAL="KSP Reference Manual(6.3.0).txt"

python3 ExtractCallbackFromManual.py "$MANUAL" > extract_callback.txt
python3 ExtractCommandFromManual.py "$MANUAL" > extract_command.txt
Expand Down
7 changes: 6 additions & 1 deletion kspparser/data/symbols/commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ I||S save_midi_file * @S
#-------------------------------------------------------------------------------------------------------
# Music Information Retrieval
#-------------------------------------------------------------------------------------------------------
I||S detect_instrument_type * @I @I
I||S detect_pitch * @I @I
I||S detect_loudness * @I @R
I||S detect_peak * @I @R
Expand Down Expand Up @@ -322,4 +323,8 @@ X mf_get_byte_two *
X mf_get_channel *
X mf_get_command *
X mf_set_channel *
X pgs_get_str_key_val *
X pgs_get_str_key_val *
#-------------------------------------------------------------------------------------------------------
# Undocumented Added Since 6.3.0
#-------------------------------------------------------------------------------------------------------
I||S get_control_par_str_arr * @I @I @I
16 changes: 16 additions & 0 deletions kspparser/data/symbols/variables.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ I ENGINE_PAR_JMP_TREBLE Y
I ENGINE_PAR_LFO_DELAY Y
I ENGINE_PAR_LFO_DELAY_UNIT Y
I ENGINE_PAR_LFO_RAND Y
I ENGINE_PAR_LFO_RANDOM Y
I ENGINE_PAR_LFO_RECT Y
I ENGINE_PAR_LFO_SAW Y
I ENGINE_PAR_LFO_SINE Y
Expand Down Expand Up @@ -474,6 +475,7 @@ I EVENT_PAR_NOTE_LENGTH Y
I EVENT_PAR_PAN Y
I EVENT_PAR_PLAY_POS Y
I EVENT_PAR_POS Y
I EVENT_PAR_REL_VELOCITY Y
I EVENT_PAR_SOURCE Y
I EVENT_PAR_TRACK_NR Y
I EVENT_PAR_TUNE Y
Expand Down Expand Up @@ -682,6 +684,20 @@ I NI_DETECT_DRUM_TYPE_PERC_OTHER Y
I NI_DETECT_DRUM_TYPE_SHAKER Y
I NI_DETECT_DRUM_TYPE_SNARE Y
I NI_DETECT_DRUM_TYPE_TOM Y
I NI_DETECT_INSTRUMENT_TYPE Y
I NI_DETECT_INSTRUMENT_TYPE_BASS Y
I NI_DETECT_INSTRUMENT_TYPE_BOWED_STRING Y
I NI_DETECT_INSTRUMENT_TYPE_BRASS Y
I NI_DETECT_INSTRUMENT_TYPE_FLUTE Y
I NI_DETECT_INSTRUMENT_TYPE_GUITAR Y
I NI_DETECT_INSTRUMENT_TYPE_INVALID Y
I NI_DETECT_INSTRUMENT_TYPE_KEYBOARD Y
I NI_DETECT_INSTRUMENT_TYPE_MALLET Y
I NI_DETECT_INSTRUMENT_TYPE_ORGAN Y
I NI_DETECT_INSTRUMENT_TYPE_PLUCKED_STRING Y
I NI_DETECT_INSTRUMENT_TYPE_REED Y
I NI_DETECT_INSTRUMENT_TYPE_SYNTH Y
I NI_DETECT_INSTRUMENT_TYPE_VOCAL Y
I NI_DETECT_SAMPLE_TYPE_DRUM Y
I NI_DETECT_SAMPLE_TYPE_INSTRUMENT Y
I NI_DETECT_SAMPLE_TYPE_INVALID Y
Expand Down
15 changes: 15 additions & 0 deletions src/features/generated/KSPBuiltinVariableNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export var BuiltinVariableNames : string[] = [
"$ENGINE_PAR_LFO_DELAY",
"$ENGINE_PAR_LFO_DELAY_UNIT",
"$ENGINE_PAR_LFO_RAND",
"$ENGINE_PAR_LFO_RANDOM",
"$ENGINE_PAR_LFO_RECT",
"$ENGINE_PAR_LFO_SAW",
"$ENGINE_PAR_LFO_SINE",
Expand Down Expand Up @@ -493,6 +494,7 @@ export var BuiltinVariableNames : string[] = [
"$EVENT_PAR_PAN",
"$EVENT_PAR_PLAY_POS",
"$EVENT_PAR_POS",
"$EVENT_PAR_REL_VELOCITY",
"$EVENT_PAR_SOURCE",
"$EVENT_PAR_TRACK_NR",
"$EVENT_PAR_TUNE",
Expand Down Expand Up @@ -709,7 +711,20 @@ export var BuiltinVariableNames : string[] = [
"$NI_DETECT_DRUM_TYPE_SHAKER",
"$NI_DETECT_DRUM_TYPE_SNARE",
"$NI_DETECT_DRUM_TYPE_TOM",
"$NI_DETECT_INSTRUMENT_TYPE",
"$NI_DETECT_INSTRUMENT_TYPE_BASS",
"$NI_DETECT_INSTRUMENT_TYPE_BOWED_STRING",
"$NI_DETECT_INSTRUMENT_TYPE_BRASS",
"$NI_DETECT_INSTRUMENT_TYPE_FLUTE",
"$NI_DETECT_INSTRUMENT_TYPE_GUITAR",
"$NI_DETECT_INSTRUMENT_TYPE_INVALID",
"$NI_DETECT_INSTRUMENT_TYPE_KEYBOARD",
"$NI_DETECT_INSTRUMENT_TYPE_MALLET",
"$NI_DETECT_INSTRUMENT_TYPE_ORGAN",
"$NI_DETECT_INSTRUMENT_TYPE_PLUCKED_STRING",
"$NI_DETECT_INSTRUMENT_TYPE_REED",
"$NI_DETECT_INSTRUMENT_TYPE_SYNTH",
"$NI_DETECT_INSTRUMENT_TYPE_VOCAL",
"$NI_DETECT_SAMPLE_TYPE",
"$NI_DETECT_SAMPLE_TYPE_DRUM",
"$NI_DETECT_SAMPLE_TYPE_INSTRUMENT",
Expand Down
2 changes: 2 additions & 0 deletions src/features/generated/KSPCommandNames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export var CommandNames : string[] = [
"dec",
"delete_event_mark",
"detect_drum_type",
"detect_instrument_type",
"detect_loudness",
"detect_peak",
"detect_pitch",
Expand All @@ -84,6 +85,7 @@ export var CommandNames : string[] = [
"get_control_par",
"get_control_par_arr",
"get_control_par_str",
"get_control_par_str_arr",
"get_engine_par",
"get_engine_par_disp",
"get_engine_par_disp_m",
Expand Down
12 changes: 12 additions & 0 deletions src/features/generated/KSPCompletionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,12 @@
"signature": "save_midi_file(path)",
"description": "saves a MIDI file with a range specified by the mf_set_export_area() command."
},
"detect_instrument_type":
{
"snippet_string": "detect_instrument_type( ${1:zone-id}, ${2:instrument-type-result} )",
"signature": "detect_instrument_type(zone-id,instrument-type-result)",
"description": "Assigns <drum-type-result> a $NI_DETECT_INSTRUMENT_TYPE tag describing the in- strument type of an audio sample."
},
"detect_pitch":
{
"snippet_string": "detect_pitch( ${1:zone-id}, ${2:pitch-result} )",
Expand Down Expand Up @@ -1436,6 +1442,12 @@
"signature": "get_control_par_str(arg1},arg2)",
"description": "Undocumented"
},
"get_control_par_str_arr":
{
"snippet_string": "get_control_par_str_arr( ${1:arg1}, ${2:arg2}, ${3:arg3} )",
"signature": "get_control_par_str(arg1},arg2,arg3)",
"description": "Undocumented"
},
"get_engine_par_disp_m":
{
"snippet_string": "get_engine_par_disp_m( ${1:arg1}, ${2:arg2}, ${3:arg3}, ${4:arg4} )",
Expand Down
90 changes: 90 additions & 0 deletions src/features/generated/KSPCompletionVariable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2834,6 +2834,12 @@
"signature": "",
"description": "Built-in Variable: $EVENT_PAR_POS"
},
"$EVENT_PAR_REL_VELOCITY":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $EVENT_PAR_REL_VELOCITY"
},
"$EVENT_PAR_SOURCE":
{
"snippet_string": "",
Expand Down Expand Up @@ -4064,6 +4070,90 @@
"signature": "",
"description": "Built-in Variable: $NI_DETECT_DRUM_TYPE_TOM"
},
"$NI_DETECT_INSTRUMENT_TYPE":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE"
},
"$NI_DETECT_INSTRUMENT_TYPE_BASS":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_BASS"
},
"$NI_DETECT_INSTRUMENT_TYPE_BOWED_STRING":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_BOWED_STRING"
},
"$NI_DETECT_INSTRUMENT_TYPE_BRASS":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_BRASS"
},
"$NI_DETECT_INSTRUMENT_TYPE_FLUTE":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_FLUTE"
},
"$NI_DETECT_INSTRUMENT_TYPE_GUITAR":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_GUITAR"
},
"$NI_DETECT_INSTRUMENT_TYPE_INVALID":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_INVALID"
},
"$NI_DETECT_INSTRUMENT_TYPE_KEYBOARD":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_KEYBOARD"
},
"$NI_DETECT_INSTRUMENT_TYPE_MALLET":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_MALLET"
},
"$NI_DETECT_INSTRUMENT_TYPE_ORGAN":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_ORGAN"
},
"$NI_DETECT_INSTRUMENT_TYPE_PLUCKED_STRING":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_PLUCKED_STRING"
},
"$NI_DETECT_INSTRUMENT_TYPE_REED":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_REED"
},
"$NI_DETECT_INSTRUMENT_TYPE_SYNTH":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_SYNTH"
},
"$NI_DETECT_INSTRUMENT_TYPE_VOCAL":
{
"snippet_string": "",
"signature": "",
"description": "Built-in Variable: $NI_DETECT_INSTRUMENT_TYPE_VOCAL"
},
"$NI_DETECT_SAMPLE_TYPE_DRUM":
{
"snippet_string": "",
Expand Down

0 comments on commit e09b3b6

Please sign in to comment.