2015-02-08 24 views
5

Gibt es eine Möglichkeit, eine Funktion in Finalescript zu definieren?So erstellen Sie eine Funktion

Nehmen wir an, ich habe ein Finalescript, und als Teil davon habe ich einen Block Code, der einige Maße n Zeilen transponiert. Aber ich denke, dass es viel bequemer wäre, eine Funktion transpose(n) zu erstellen, die es um n halbe Schritte transponiert.

Also, gibt es eine Möglichkeit, dies im Finalescript zu tun?

Antwort

1

Nein. In der closest thing I could find to a documentation wurde nichts über Funktionen geschrieben.

Aber wenn ich über Ihre spezielle Frage nachdachte, würden Sie jemals eine transpose(n) Funktion benötigen? Denn wenn Sie ein Transpositionsskript haben, würden Sie nicht einfach alles transponieren?

Ein Beispiel aus dem 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” 

Ich bin damit einverstanden, dass es sehr schön wäre, und komfortable Funktionen in finalescript zu haben, aber ich denke, dass finalescript sie nicht hat.

Viel Glück!

Verwandte Themen