2015-02-08 19 views
5

C'è un modo per definire una funzione in finalescript?Come creare una funzione

Diciamo che ho un finalescript e, come parte di esso, ho un blocco di codice che traspone alcune misure n righe. Tuttavia, ritengo che sarebbe molto più comodo creare una funzione transpose(n) che la trasponga di n mezze misure.

Quindi, c'è un modo per farlo in finalescript?

risposta

1

No. Nel closest thing I could find to a documentation, non è stato scritto nulla sulle funzioni.

Ma, quando ho pensato alla tua particolare domanda, avresti mai avuto bisogno di una funzione transpose(n)? Perché se hai intenzione di avere uno script di trasposizione, non dovresti semplicemente trasporre tutto?

Un esempio dal 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” 

Sono d'accordo che sarebbe stato molto bello e comodo per avere funzioni in finalescript, ma credo che finalescript non li hanno.

Buona fortuna!