Created
August 5, 2022 12:30
-
-
Save ayaysir/38b3c557471461f8e1be467df045cbd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 로직 X 피아노롤 아래에 있는 상태에서 G#0 노트 클릭 활성화 | |
-- A0(21) ~ C8(108) | |
set midiNoteNum to 21 | |
tell application "Logic Pro X" to activate | |
tell application "System Events" | |
repeat while midiNoteNum ≤ 108 | |
-- option + upper arrow | |
key code 126 using option down | |
delay 1 | |
-- bounce | |
key code 11 using command down | |
delay 1 | |
-- press return | |
key code 36 | |
-- wait | |
delay 2 | |
-- enter filename | |
set textToType to "Alarm_440_L1_" & midiNoteNum | |
keystroke textToType | |
key code 36 | |
-- wait bounce | |
delay 4 | |
-- add 1 to midiNoteNum | |
set midiNoteNum to midiNoteNum + 1 | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment