如何创建一个函数

5

有没有办法在FinaleScript中定义一个函数?

假设我有一段FinaleScript代码,其中有一块代码可以将一些小节上下移动n个行。但是,我觉得创建一个名为transpose(n)的函数会更加方便,它可以将小节上下移动n个半音。

那么,在FinaleScript中是否有任何方法可以实现这一点呢?

1个回答

3
。在我能找到的最接近文档中,没有任何关于函数的说明
但是,当我考虑到你的具体问题时,你是否需要一个transpose(n)函数呢?因为如果你要有一个转调脚本,那么你不是只需要对所有东西进行转调吗?
以下是来自Finalescript博客的例子:
//set this to the key of the instrument transposition

key signature F major

//highlight the staff that needs to be made key independent
//or you can set the staff to be selected by removing the
//comment slashes and changing the number

select staff 1

staff attributes
check “Key Signature” Near “Independent Elements”
press “ok”

//Set this to the key of the piece, such as C major

key signature C Major

//to correct the pitch of the staff you need to set this

menu item “Utilities/Transpose”
radio “Down”
radio “Chromatically”
popup “Perfect Fourth”
type “0” near “Octave(s)
uncheck “Preserve Original Notes”
press “OK”

我同意在finale脚本中添加函数将非常方便,但我猜finale脚本没有这个功能。
祝你好运!

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接