开发者

Conditional statements in Applescript?

开发者 https://www.devze.com 2023-02-10 06:49 出处:网络
I am a complete neophyte with Applescript.I am using Midipipe, and trying to set up some conditionals to alter Midi note numbers开发者_StackOverflow社区.

I am a complete neophyte with Applescript. I am using Midipipe, and trying to set up some conditionals to alter Midi note numbers开发者_StackOverflow社区.

I have two Midi inputs and basically I just need a series of:

If (input one == (a program change variable)){ input two + 1} else blah blah blah...

I need to know how to format it and compile it to run in Midipipe so that it outputs the condition. Thanks so much!


The basic statements for conditionals in AppleScript are:

if variable = value then
    -- do something
else if variable = othervalue then
    -- do something
else 
    -- do something
end if

obs: "--" are comments lines

0

精彩评论

暂无评论...
验证码 换一张
取 消