windows - 如何创建函数

标签 windows function task finalescript

有什么方法可以在 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/

相关文章:

c# - 按时间取消任务

windows - 报告 Direct3D 内存使用情况

java - 在 Windows 上使用 Java 代替 pngcrush 优化 iPhone 的 PNG 格式

Swift函数作为类中的参数

sql - 在下面的两个 sql 查询中,建议哪一个更好。带有连接的单个查询还是两个简单查询?

c# - 如何停止和恢复 worker 服务?

java - 使用命令行提取 .jar 文件

c# - CB_SELECTSTRING 在某些机器上被忽略

php - 在 MySQL PDO 中使用 PHP 函数

ant:由于 NoClassDefFoundError 导致 ftp 任务失败