gpt4 book ai didi

windows - 如何创建函数

转载 作者:可可西里 更新时间:2023-11-01 13:40:41 25 4
gpt4 key购买 nike

有什么方法可以在 finalescript 中定义一个函数吗?

假设我有一个终曲,作为其中的一部分,我有一段代码可以将一些小节转置 n 行。但是,我觉得创建一个将它转置 n 个半步的函数 transpose(n) 会方便得多。

那么,有什么办法可以在 finalescript 中做到这一点吗?

最佳答案

。在closest thing I could find to a documentation , 没有写任何关于函数的内容。

但是,当我想到您的特定问题时,您是否需要 transpose(n) 函数?因为如果你要有一个转置脚本,你不会简单地转置所有内容吗?

finalescript blog 中的示例:

//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”

我同意在 finalescript 中包含函数会非常好和方便,但我猜 finalescript 没有它们。

祝你好运!

关于windows - 如何创建函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28399337/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com