GUIDOLib
1.7.7
A Music Score Rendering Engine
|
Functions | |
GuidoErrCode | GuidoOnDraw (GuidoOnDrawDesc *desc) |
Draws one page of score into a graphic device. More... | |
GuidoErrCode | GuidoGR2SVG (const GRHandler handle, int page, std::ostream &out, bool embedFont, const char *font, const int mappingMode=0) |
Exports one page of score to SVG. More... | |
GuidoErrCode | GuidoGR2SVG1 (const GRHandler handle, int page, std::ostream &out, int width, int height, bool embedFont) |
Exports one page of score to SVG. More... | |
GuidoErrCode | GuidoGR2SVGColored (const GRHandler handle, int page, std::ostream &out, const VGColor &color, bool embedFont) |
Exports one page of score to SVG. More... | |
GuidoErrCode | GuidoSVGExport (const GRHandler handle, int page, std::ostream &out, const char *fontfile, const int mappingMode=0) GUIDOAPI_deprecated |
Exports one page of score to SVG. More... | |
GuidoErrCode | GuidoSVGExportWithFontSpec (const GRHandler handle, int page, std::ostream &out, const char *fontfile, const char *fontspec, const int mappingMode=0) GUIDOAPI_deprecated |
Exports one page of score to SVG. If fontfile or fontspec are set, the font is added to svg. The fontfile has priority over the fontspec. More... | |
GuidoErrCode | GuidoAbstractExport (const GRHandler handle, int page, std::ostream &out) |
Exports an abstract representation of GUIDO draw commands. More... | |
GuidoErrCode | GuidoBinaryExport (const GRHandler handle, int page, std::ostream &out) |
Exports an representation of GUIDO draw commands in a data-reduced dsl. More... | |
void | GuidoDrawBoundingBoxes (int bbMap) |
Control bounding boxes drawing. More... | |
int | GuidoGetDrawBoundingBoxes () |
Gives bounding boxes drawing state. More... | |
void | GuidoGetPageFormat (CGRHandler inHandleGR, int pageNum, GuidoPageFormat *format) |
Gives a score page format. More... | |
void | GuidoSetDefaultPageFormat (const GuidoPageFormat *format) |
Sets the default score page format. More... | |
void | GuidoGetDefaultPageFormat (GuidoPageFormat *format) |
Gives the default score page format. More... | |
void | GuidoSetStaffSize (CGRHandler inHandleGR, int staffNum, float size) |
Gives the staves size (one staff at a time). Staff will have given size until a \staffFormat tag with "size" param is defined. Size should be given in internal units. To convert from cm or inches you should use GuidoCM2Unit or GuidoInches2Unit . More... | |
float | GuidoGetStaffSize (CGRHandler inHandleGR, int staffNum) |
Get the staff size of given staff number. More... | |
float | GuidoUnit2CM (float val) |
Converts internal Guido units into centimeters. More... | |
float | GuidoCM2Unit (float val) |
Converts centimeters into internal Guido units. More... | |
float | GuidoUnit2Inches (float val) |
Converts internal Guido units into inches. More... | |
float | GuidoInches2Unit (float val) |
Converts inches into internal Guido units. More... | |
GuidoErrCode | GuidoResizePageToMusic (GRHandler inHandleGR) |
Resize the page sizes to the music size. More... | |
The GuidoEngine makes use of internal units for graphic operations. The functions that query or set graphic dimensions always makes use of this internal unit. Conversion functions are provided to convert to standard units.
GuidoErrCode GuidoAbstractExport | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out | ||
) |
Exports an abstract representation of GUIDO draw commands.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
GuidoErrCode GuidoBinaryExport | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out | ||
) |
Exports an representation of GUIDO draw commands in a data-reduced dsl.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
float GuidoCM2Unit | ( | float | val | ) |
Converts centimeters into internal Guido units.
val | the value to be converted |
void GuidoDrawBoundingBoxes | ( | int | bbMap | ) |
Control bounding boxes drawing.
bbMap | a bits field indicating the set of bounding boxes to draw (default to none). |
void GuidoGetDefaultPageFormat | ( | GuidoPageFormat * | format | ) |
Gives the default score page format.
format | on output: the page format |
int GuidoGetDrawBoundingBoxes | ( | ) |
Gives bounding boxes drawing state.
void GuidoGetPageFormat | ( | CGRHandler | inHandleGR, |
int | pageNum, | ||
GuidoPageFormat * | format | ||
) |
Gives a score page format.
inHandleGR | a Guido opaque handle to a GR structure. |
pageNum | a page number. |
format | on output: the page format |
float GuidoGetStaffSize | ( | CGRHandler | inHandleGR, |
int | staffNum | ||
) |
Get the staff size of given staff number.
GuidoErrCode GuidoGR2SVG | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
bool | embedFont, | ||
const char * | font, | ||
const int | mappingMode = 0 |
||
) |
Exports one page of score to SVG.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
embedFont | a boolean value. When true, the default svg guido font is embedded to the SVG. |
font | path of the guido svg font file (ignored when embedFont is true ) |
mappingMode | the mapping mode |
GuidoErrCode GuidoGR2SVG1 | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
int | width, | ||
int | height, | ||
bool | embedFont | ||
) |
Exports one page of score to SVG.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
width | the drawing area width. |
height | the drawing area height. |
embedFont | a boolean value. When true, the default svg guido font is embedded to the SVG. |
GuidoErrCode GuidoGR2SVGColored | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
const VGColor & | color, | ||
bool | embedFont | ||
) |
Exports one page of score to SVG.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
color | the score color. |
embedFont | a boolean value. When true, the default svg guido font is embedded to the SVG. |
float GuidoInches2Unit | ( | float | val | ) |
Converts inches into internal Guido units.
val | the value to be converted |
GuidoErrCode GuidoOnDraw | ( | GuidoOnDrawDesc * | desc | ) |
Draws one page of score into a graphic device.
desc | informations about what to draw and how to draw. |
GuidoErrCode GuidoResizePageToMusic | ( | GRHandler | inHandleGR | ) |
Resize the page sizes to the music size.
inHandleGR | a Guido opaque handle to a GR structure. |
void GuidoSetDefaultPageFormat | ( | const GuidoPageFormat * | format | ) |
Sets the default score page format.
The default page format is used when no \pageFormat
tag is present. Parameters are Guido internal units. Default values for the default page format are:
format | the page format |
void GuidoSetStaffSize | ( | CGRHandler | inHandleGR, |
int | staffNum, | ||
float | size | ||
) |
Gives the staves size (one staff at a time). Staff will have given size until a \staffFormat tag with "size" param is defined. Size should be given in internal units. To convert from cm or inches you should use GuidoCM2Unit
or GuidoInches2Unit
.
inHandleGR | a Guido opaque handle to a GR structure. |
staffNum | the staff number on which will be applied new size scale |
size | the staff size in internal units. A negative value resets the staff size. |
GuidoErrCode GuidoSVGExport | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
const char * | fontfile, | ||
const int | mappingMode = 0 |
||
) |
Exports one page of score to SVG.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
fontfile | path of the guido svg font file. |
mappingMode | the mapping mode (see mapping mode enum). |
GuidoErrCode GuidoSVGExportWithFontSpec | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
const char * | fontfile, | ||
const char * | fontspec, | ||
const int | mappingMode = 0 |
||
) |
Exports one page of score to SVG. If fontfile or fontspec are set, the font is added to svg. The fontfile has priority over the fontspec.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
fontfile | path of the guido svg font file. |
fontspec | an svg font in text representation. |
mappingMode | the mapping mode (see mapping mode enum). |
float GuidoUnit2CM | ( | float | val | ) |
Converts internal Guido units into centimeters.
val | the value to be converted |
float GuidoUnit2Inches | ( | float | val | ) |
Converts internal Guido units into inches.
val | the value to be converted |