Skip to content

Instantly share code, notes, and snippets.

@ayaysir
Created August 5, 2022 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayaysir/38b3c557471461f8e1be467df045cbd6 to your computer and use it in GitHub Desktop.
Save ayaysir/38b3c557471461f8e1be467df045cbd6 to your computer and use it in GitHub Desktop.
-- 로직 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