Template functions
With template functions you can create smart formatting templates that perform a variety of functions such as selecting parts, transposing a part/score, adding and editing parts, and saving music in other formats (.mid, .pdf).
- SELECTPART( MAIN|PREV|NEXT|FULL|LAST|name );
- MODIFYPART( part modification );
- ADDPART( auto part);
- SETPART( parameter, value );
- SET( parameter, value );
- TRANSPOSE( number of semitones );
- OPENLIST( playlistname );
- OPENFILE( PREV|NEXT|FIRST|LAST|name );
- SAVEFILE( extension );
- USEPATTERN( arrangement name );
- USETEMPLATE( templatename[, condition[, othertemplate] ] );
- REQUIRE( condition, notification );
- MESSAGE( notification );
- CONFIRM( notification );
- ERROR( notification );
For an alphabetical overview of possible parameters to use see: template parameters
Examples
A layout template that splits a two-part part has something like this:
!# SETPART( sVoicename, UpperVoice ); ! rename the part 'UpperVoice' !# ADDPART( COPY1 ); ! copy current part !# SETPART( sVoicename, LowerVoice ); !rename the copied part 'LowerVoice !# MODIFYPART( RemoveHighvoice ); ! delete the upper notes !# SELECTPART( Uppervoice ); ! choose original part' !# MODIFYPART( RemoveLowvoice); ! delete the lower notes
ADDPART • CALCULATE • CONFIRM • DELETEPART • ERROR • MESSAGE • MODIFYPART • OPENFILE • OPENLIST • PROMPT • REQUIRE • SAVEFILE • SELECTPART • SET • SETPART • TRANSPOSE • USEPATTERN • USETEMPLATE
FAQ • special constructs • conditions • parameters • variables • translation