Entering a series of directives for a specific track can get quite tedious. To make the creation of library files a bit easier, you can create a block. For example, the following:
Drum Define X 0 2 100; 50 2 90 |
Can be replaced with:
Drum Begin |
Or, even more simply, with:
Drum Begin Define |
If you examine some of the library files you will see that we use this shortcut a lot.
The Begin command requires any number of arguments. Valid examples include:
Begin Drum |
Once a Begin block has been entered, all subsequent lines have the words from the Begin command prepended to each line of data. There is not much magic here--Begin/End is really just some syntactic sugar.
To finish off a Begin block, use a single End on a line by itself.
Defining musical data, repeats, or other Begins inside a block (other than COMMENT blocks) will not work.
Nesting is permitted. Eg:
Scale Beginstuff stuff
|
A Begin must be competed with a End before the end of a file, otherwise an error will be generated. The Use and Include commands are not permitted inside a block.