SAVEFILE

From MusiCAD

SAVEFILE is a command you can use in a layout template to save the current file in a different format.

Syntax:

     SAVEFILE( extension );
     SAVEFILE( C:\\PATHNAME\\extension );
     SAVEFILE( $(MACRO)extension );

As extension you can choose from: .abc, .pdf, .png, .jpg, .gif .mc and .mid to store abc files, portable-document-format, three kinds of pictures and midi files respectively.

The file is saved in the same folder as the corresponding .mc file, unless the SAVEFILE statement also contains a folder (with or without a macro). At [Help|Info] you can see under 'Folders' which macros can be used as folder names.

Examples

  SAVEFILE( $(EXAMPLES).pdf );

This will save a .pdf version of the current song as:

 C:\Users\USERNAME\Documents\My Sheet Music\Samples\MUSIC.pdf

A number of layout templates use the macro $(PLACES5) as a destination for export files:

  SAVEFILE( $(PLACES5).png );

The PLACES5 macro usually points to the default Windows downloads folder, but you can specify a custom location here that allows you to export sheet music in various formats with a single click or keystroke.

This will save a .png version of the current song as:

 C:\Users\USERNAME\Downloads\MUSIC.png