When I try to import music.cfdg into file concert.cfdg I get the error:
Code: Select all
Restarting as a version 3 design
Reading rules file music.cfdg
Error in music.cfdg at line 3 - Illegal mixture of old and new elements
Error in music.cfdg at line 4 - syntax error
Code: Select all
startshape CONCERT
import "music.cfdg"
Code: Select all
startshape STAVE
rule STAVE
{
5*{y 4}LINE[]
STAVE[r 0.75 x 1 s 0.999]
}
//lines of the stave
rule LINE
{
SQUARE[]
}
rule LINE 0.01
{
NOTE[]
SQUARE[]
}
//notes and where they appear on the stave
rule NOTE 1
{
SEMIBREVE[y -2 s 2]
}
rule NOTE 2
{
MINIM[y - 2 s 2]
}
rule NOTE 3
{
CROTCHET[y -2 s 2]
}
rule NOTE 4
{
QUAVER[y -2 s 2]
}
rule NOTE 5
{
SEMIQUAVER[y -2 s 2]
}
//different note types and how to draw them
path SEMIBREVE
{
MOVETO{}
ARCTO{x 1 y 1}
ARCTO{x 0 y 2}
ARCTO{x -1 y 1}
ARCTO{x 0 y 0}
CLOSEPOLY{}
STROKE{width 0.4}
}
path MINIM
{
MOVETO{}
ARCTO{x 1 y 1}
ARCTO{x 0 y 2}
ARCTO{x -1 y 1}
ARCTO{x 0 y 0}
CLOSEPOLY{}
MOVETO{x 1 y 1}
LINEREL{y 4}
STROKE{width 0.4}
}
path CROTCHET
{
MOVETO{}
ARCTO{x 1 y 1}
ARCTO{x 0 y 2}
ARCTO{x -1 y 1}
ARCTO{x 0 y 0}
CLOSEPOLY{}
STROKE{width 0.4}
FILL{}
MOVETO{x 1 y 1}
LINEREL{y 4}
STROKE{width 0.4}
}
path QUAVER
{
MOVETO{}
ARCTO{x 1 y 1}
ARCTO{x 0 y 2}
ARCTO{x -1 y 1}
ARCTO{x 0 y 0}
CLOSEPOLY{}
STROKE{width 0.4}
FILL{}
MOVETO{x 1 y 1}
LINEREL{y 4}
CURVEREL{x 1.5 y -1.5 x1 0.5 y1 -1}
STROKE{width 0.4}
}
path SEMIQUAVER
{
MOVETO{}
ARCTO{x 1 y 1}
ARCTO{x 0 y 2}
ARCTO{x -1 y 1}
ARCTO{x 0 y 0}
CLOSEPOLY{}
STROKE{width 0.4}
FILL{}
MOVETO{x 1 y 1}
LINEREL{y 4}
CURVEREL{x 1.5 y -1.5 x1 0.5 y1 -1}
MOVETO{x 1 y 3.9}
CURVEREL{x 1.5 y -1.5 x1 0.5 y1 -1}
STROKE{width 0.4}
}