nano_ardule_midi_controller:scripts
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| nano_ardule_midi_controller:scripts [2025/11/04 14:44] – created hyjeong | nano_ardule_midi_controller:scripts [2025/11/04 17:25] (current) – hyjeong | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 스크립트 ====== | + | ====== 스크립트 |
| + | 챗GPT로 만든 갖가지 스크립트를 여기에 모았다. 드럼 연주 정보가 담긴 type 0 MIDI 파일을 2 마디 단위로 끊어서 별도의 .MID 파일로 저장하고, | ||
| + | 보안 때문에 파이썬 스크립트를 그대로 업로드하지 못하므로, | ||
| + | |||
| + | < | ||
| + | |||
| + | # README_v2.txt | ||
| + | |||
| + | PC/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | (주의사항) 01_input_MID/ | ||
| + | |||
| + | # 0) 깨끗이 시작 (선택) | ||
| + | Remove-Item -Recurse -Force .\ADT, .\SD -ErrorAction SilentlyContinue | ||
| + | New-Item -ItemType Directory -Force .\ADT, .\SD\PATTERNS, | ||
| + | |||
| + | # 1) 사전 분석(Subdivision Analysis에서 grid가 triplet과 straight 중 무엇인지 확인) | ||
| + | python.exe .\tools\mid2report_integrated.py .\01_input_MID\6ROCK.MID | ||
| + | python.exe .\tools\mid2report_integrated.py .\01_input_MID\6FUNK.MID | ||
| + | python.exe .\tools\mid2report_integrated.py .\01_input_MID\6BLUES.MID # triplet | ||
| + | |||
| + | #1) Type 0 MIDI file을 2 bar 단위로 분할 | ||
| + | # 01_input_MID/ | ||
| + | python.exe .\tools\split_drums_2bar_save_v4a.py .\01_input_MID\6ROCK.MID | ||
| + | python.exe .\tools\split_drums_2bar_save_v4a.py .\01_input_MID\6FUNK.MID | ||
| + | mv .\01_test\??? | ||
| + | |||
| + | #2) MIDI → ADT (기본: 32스텝/ | ||
| + | python .\tools\mid2adt.py --in-dir .\MID --out-dir .\ADT --recursive | ||
| + | |||
| + | # (optional) 트리플렛 세트가 있다면: | ||
| + | python.exe .\tools\split_drums_2bar_save_v4a.py .\01_input_MID\6BLUES.MID | ||
| + | mv .\01_input_MID\BLU_P??? | ||
| + | python .\tools\mid2adt.py --in-dir .\MID_TRIP --out-dir .\ADT --grid 16T --length 48 --recursive | ||
| + | |||
| + | # 4) ADT → ADP | ||
| + | python .\tools\adt2adp.py --in-dir .\ADT --out-dir .\SD\PATTERNS --recursive --overwrite | ||
| + | |||
| + | # 5) INDEX.TXT 생성 | ||
| + | python .\tools\mkindex.py --patterns .\SD\PATTERNS --out .\SD\SYSTEM\INDEX.TXT | ||
| + | |||
| + | # 6) (선택) ARR 만들기 | ||
| + | # CSV (한 줄: PatternName, | ||
| + | python .\tools\arr_make.py --title "Rock Demo" --tempo 120 --in .\lists\rock_demo.csv --out .\SD\SONGS\ROCK_DEMO.ARR | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | ===== 사용 가이드 ===== | ||
| + | |||
| + | * {{ : | ||
| + | * {{ : | ||
| + | * {{ : | ||
| + | * {{ : | ||
| + | |||
| + | ===== 파이썬 스크립트 ===== | ||
| + | |||
| + | 아, 귀찮아라. 일단 zip으로 압축하여 업로드한다. {{ : | ||
| + | |||
| + | 작업 디렉토리 그대로 묶음 {{ : | ||
nano_ardule_midi_controller/scripts.1762235083.txt.gz · Last modified: by hyjeong
