SET

From MusiCAD

SET is a template function that you can use in a layout template to change song data.

Syntax:

    SET( parameter, value );

To set part information use SETPART

Examples

The formatting template that converts a score to a B-flat score looks like this:

 melody "mc-Bb";
 !%TemplateNL: Gereedschapskist|Bb partituur
 !%TemplateUK: Toolbox|Bb score
 !%TemplateDE: Werkzeugtasche|B partiutur
 !# REQUIRE( sHR1<>Bb instruments, "Bb score..." );
 !# TRANSPOSE( 2 );
 !# SET( sHR1, Bb instruments );
 !# SET( fChords, (Visible=0) );