How to create a function

Is there a way to define a function in finalescript?

Let's say I have a finalist, and as part of it, I have a block of code that wraps some measures of n lines. But I feel that it would be much more convenient to create the transpose(n) function, which transfers it to n half-steps.

So, is there a way to do this in finalescript?

+5
source share
1 answer

No. In the next thing that I could find in the documentation , nothing was written about functions.

But when I thought about your specific question, would you need the transpose(n) function? Because if you had a transposition script, would you just not transpose everything?

Example from the final 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" 

I agree that it would be very nice and convenient to have functions in finalescript, but I think finalescript does not have them.

Good luck

+1
source

Source: https://habr.com/ru/post/1212916/


All Articles