GUIDOLib  1.7.7
A Music Score Rendering Engine
GUIDOEngine.h
Go to the documentation of this file.
1 #ifndef GUIDOEngine_H
2 #define GUIDOEngine_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2003, 2004 Grame
8 
9  This Source Code Form is subject to the terms of the Mozilla Public
10  License, v. 2.0. If a copy of the MPL was not distributed with this
11  file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 
13  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
14  research@grame.fr
15 
16 */
17 
18 #include <ostream>
19 #include <string>
20 #include <vector>
21 #include "VGColor.h"
22 #include "GUIDOExport.h"
23 
24 
25 #ifdef WIN32
26  #define GUIDOAPI_deprecated
27 #else
28  #define GUIDOAPI_deprecated __attribute__((deprecated))
29 #endif
30 
31 
32 class VGDevice;
33 
34 struct NodeAR;
35 struct NodeGR;
36 typedef struct NodeAR * ARHandler;
37 typedef struct NodeGR * GRHandler;
38 typedef const struct NodeAR * CARHandler;
39 typedef const struct NodeGR * CGRHandler;
40 
50 {
53 
54  void * reserved;
55 
57  const char * musicFont;
59  const char * textFont;
60 };
61 
65 {
67  bool erase;
70  int left;
71  int top;
72  int right;
73  int bottom;
74 };
75 
76 
83 typedef struct
84 {
86  int num;
88  int denom;
89 
90 } GuidoDate;
91 
92 
93 #define kMaxGuidoMeterCounts 15
94 
107 typedef struct
108 {
112  int unit;
113 } GuidoMeter;
115 
116 
129 typedef struct
130 {
132  int voice;
136  char text[128];
142  int value;
145 } GuidoTempo;
147 
153 {
156 
160  int page;
163 
170 
174  float reserved;
175 
176  int sizex, sizey;
177 
180  int isprint;
181 };
182 
183 
186 enum { kNoBB, kPageBB,
189  kStavesBB = 8,
190  kMeasureBB = 0x10,
191  kEventsBB = 0x20,
192 };
193 
194 
196 {
200 };
201 
212 {
235 };
246 };
247 
248 
251 
255 typedef struct GuidoLayoutSettings
256 {
261 
266 
272 
276  float force;
277 
281  float spring;
282 
287 
292 
297 
303 
307 
309 
316 typedef struct
317 {
318  float width;
319  float height;
320  float marginleft;
321  float margintop;
322  float marginright;
325 
326 
332 typedef struct
333 {
337 
338 #ifdef __cplusplus
339 extern "C" {
340 #endif
341 
366 
380  GUIDOAPI void GuidoShutdown();
381 
391 #ifdef WIN32
392  __declspec(deprecated("Deprecated function : use ARHandler GuidoFile2AR (GuidoParser *parser, const char * file) instead."))
393 #endif
395 
404 #ifdef WIN32
405  __declspec(deprecated("Deprecated function : use ARHandler GuidoString2AR (GuidoParser *parser, const char * str) instead."))
406 #endif
408 
421 
431 
440 
449 
459 
468 
473  GUIDOAPI void GuidoFreeAR (ARHandler ar);
474 
479  GUIDOAPI void GuidoFreeGR (GRHandler gr);
480 
487  GUIDOAPI const char* GuidoGetErrorString( GuidoErrCode errCode );
488 
494 #ifdef WIN32
495  __declspec(deprecated("Deprecated function : use GUIDOAPI GuidoErrCode GuidoParserGetErrorCode (GuidoParser* p, int& line, int& col) instead."))
496 #endif
498 
522  GUIDOAPI int GuidoCountVoices( CARHandler inHandleAR );
523 
529  GUIDOAPI int GuidoGetPageCount( CGRHandler inHandleGR );
530 
537  GUIDOAPI int GuidoGetSystemCount( CGRHandler inHandleGR, int page );
538 
549 
558  GUIDOAPI int GuidoFindEventPage( CGRHandler inHandleGR, const GuidoDate& date );
559 
568  GUIDOAPI int GuidoFindPageAt( CGRHandler inHandleGR, const GuidoDate& date );
569 
577  GUIDOAPI GuidoErrCode GuidoGetPageDate( CGRHandler inHandleGR, int pageNum, GuidoDate* date);
578 
579 
591  GUIDOAPI GuidoErrCode GuidoGetMeterAt (CARHandler inHandleAR, int voicenum, const GuidoDate &date, GuidoMeter& meter);
592 
593 
604  GUIDOAPI GuidoErrCode GuidoGetMetersAt (CARHandler inHandleAR, int voicenum, const GuidoDate &date, GuidoMeters& meters);
605 
606 
613 
614 
625  GUIDOAPI int GuidoGetTempoList (CARHandler inHandleAR, GuidoTempoList& tempi);
626 
627 
634 
635 
654 
665  GUIDOAPI GuidoErrCode GuidoGR2SVG( const GRHandler handle, int page, std::ostream& out, bool embedFont, const char* font, const int mappingMode = 0 );
666 
677  GUIDOAPI GuidoErrCode GuidoGR2SVG1( const GRHandler handle, int page, std::ostream& out, int width, int height, bool embedFont );
678 
688  GUIDOAPI GuidoErrCode GuidoGR2SVGColored( const GRHandler handle, int page, std::ostream& out, const VGColor& color, bool embedFont );
689 
699  #ifdef WIN32
700  __declspec(deprecated("Deprecated function : use GUIDOAPI GuidoErrCode GuidoGR2SVG( const GRHandler handle, int page, std::ostream& out, bool embedFont, const char* font, const int mappingMode = 0 ) instead."))
701  #endif
702  GUIDOAPI GuidoErrCode GuidoSVGExport( const GRHandler handle, int page, std::ostream& out, const char* fontfile, const int mappingMode = 0 ) GUIDOAPI_deprecated;
703 
715  #ifdef WIN32
716  __declspec(deprecated("Deprecated function : use GUIDOAPI GuidoErrCode GuidoGR2SVG( const GRHandler handle, int page, std::ostream& out, bool embedFont, const char* font, const int mappingMode = 0 ) instead."))
717  #endif
718  GUIDOAPI GuidoErrCode GuidoSVGExportWithFontSpec( const GRHandler handle, int page, std::ostream& out, const char* fontfile, const char* fontspec, const int mappingMode = 0 ) GUIDOAPI_deprecated;
719 
727  GUIDOAPI GuidoErrCode GuidoAbstractExport( const GRHandler handle, int page, std::ostream& out);
728 
736  GUIDOAPI GuidoErrCode GuidoBinaryExport( const GRHandler handle, int page, std::ostream& out);
737 
742  GUIDOAPI void GuidoDrawBoundingBoxes(int bbMap);
743 
747 
754  GUIDOAPI void GuidoGetPageFormat( CGRHandler inHandleGR, int pageNum, GuidoPageFormat* format );
755 
770 
776 
787  GUIDOAPI void GuidoSetStaffSize( CGRHandler inHandleGR, int staffNum, float size );
788 
793  GUIDOAPI float GuidoGetStaffSize( CGRHandler inHandleGR, int staffNum );
794 
800  GUIDOAPI float GuidoUnit2CM(float val);
801 
807  GUIDOAPI float GuidoCM2Unit(float val);
808 
814  GUIDOAPI float GuidoUnit2Inches(float val);
815 
821  GUIDOAPI float GuidoInches2Unit(float val);
822 
823 
830 
831 
849  GUIDOAPI void GuidoGetVersionNums(int * major, int * minor, int * sub);
850 
854  GUIDOAPI const char* GuidoGetVersionStr();
855 
856 
866  GUIDOAPI GuidoErrCode GuidoCheckVersionNums(int major, int minor, int sub);
867 
868 
876  GUIDOAPI float GuidoGetLineSpace();
877 
878 
893  GUIDOAPI GuidoErrCode GuidoMarkVoice( ARHandler inHandleAR, int voicenum,
894  const GuidoDate & date, const GuidoDate & duration,
895  unsigned char red, unsigned char green, unsigned char blue );
896 
897 
905  GUIDOAPI GuidoErrCode GuidoSetSymbolPath(ARHandler inHandleAR, const std::vector<std::string> &inPaths);
906 
907 
916  GUIDOAPI GuidoErrCode GuidoGetSymbolPath(const ARHandler inHandleAR, std::vector<std::string> &inPathVector);
917 
931  GUIDOAPI long GuidoGetParsingTime (const ARHandler ar);
932 
938  GUIDOAPI long GuidoGetAR2GRTime(const GRHandler gr);
939 
945  GUIDOAPI long GuidoGetOnDrawTime(const GRHandler gr);
946 
950 #ifdef __cplusplus
951 }
952 #endif
953 
954 
955 #endif /* GUIDOEngine_H */
GuidoGetVersionStr
const char * GuidoGetVersionStr()
Gives the library version number as a string.
GuidoLayoutSettings::systemsDistribLimit
float systemsDistribLimit
Definition: GUIDOEngine.h:271
GuidoShutdown
void GuidoShutdown()
GuidoGetParseErrorLine
int GuidoGetParseErrorLine() GUIDOAPI_deprecated
GuidoGrParameters::layoutSettings
GuidoLayoutSettings layoutSettings
Definition: GUIDOEngine.h:334
GPaintStruct::bottom
int bottom
Definition: GUIDOEngine.h:73
GuidoFreeMeters
GuidoErrCode GuidoFreeMeters(GuidoMeters meters)
Releases a meters array..
kGRArticulations
Definition: GUIDOEngine.h:250
guidoErrParse
error while parsing the Guido format
Definition: GUIDOEngine.h:216
kNoBB
Definition: GUIDOEngine.h:186
GuidoInitDesc
A data structure containing all information required by GuidoInit()
Definition: GUIDOEngine.h:49
GuidoTempo::voice
int voice
the voice number
Definition: GUIDOEngine.h:132
GuidoDuration
GuidoErrCode GuidoDuration(CGRHandler inHandleGR, GuidoDate *date)
Returns the music duration of a score.
GuidoDate::num
int num
the date numerator
Definition: GUIDOEngine.h:86
GuidoGetPageCount
int GuidoGetPageCount(CGRHandler inHandleGR)
Gives the number of score pages of the graphic representation.
GuidoShowElement
GuidoErrCode GuidoShowElement(GRHandler gr, GRElement elt, bool status)
guidoErrInvalidHandle
invalid handler used
Definition: GUIDOEngine.h:230
GuidoGetPageFormat
void GuidoGetPageFormat(CGRHandler inHandleGR, int pageNum, GuidoPageFormat *format)
Gives a score page format.
GuidoOnDrawDesc::scrolly
int scrolly
Definition: GUIDOEngine.h:169
GuidoInternalDevice
GuidoInternalDevice
Definition: GUIDOEngine.h:195
GuidoBinaryExport
GuidoErrCode GuidoBinaryExport(const GRHandler handle, int page, std::ostream &out)
Exports an representation of GUIDO draw commands in a data-reduced dsl.
GuidoOnDrawDesc
Contains all graphic-related information required by GuidoOnDraw()
Definition: GUIDOEngine.h:152
GuidoTempo
Representation of tempo information at a given date.
Definition: GUIDOEngine.h:129
GuidoGetErrorString
const char * GuidoGetErrorString(GuidoErrCode errCode)
GuidoGetStaffSize
float GuidoGetStaffSize(CGRHandler inHandleGR, int staffNum)
Get the staff size of given staff number.
GuidoGetMetersAt
GuidoErrCode GuidoGetMetersAt(CARHandler inHandleAR, int voicenum, const GuidoDate &date, GuidoMeters &meters)
Gives the current meters on a given date and voice.
GuidoAR2GRParameterized
GRHandler GuidoAR2GRParameterized(ARHandler ar, const GuidoGrParameters *gp)
GuidoAR2GRParameterized. Transforms a Guido abstract representation into a Guido graphic representati...
duration
GuidoDate duration(CGRHandler inHandleGR)
Returns the music duration of a score.
GuidoMeter
A meter representation.
Definition: GUIDOEngine.h:107
GuidoSetSymbolPath
GuidoErrCode GuidoSetSymbolPath(ARHandler inHandleAR, const std::vector< std::string > &inPaths)
Makes the correspondance between an ARMusic and a path.
guidoErrFileAccess
error while reading or writing a file
Definition: GUIDOEngine.h:220
GuidoInitWithIndependentSVG
GuidoErrCode GuidoInitWithIndependentSVG()
kStaffMapping
Definition: GUIDOEngine.h:244
guidoErrBadParameter
bad parameter used as argument
Definition: GUIDOEngine.h:228
GuidoSVGExport
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.
GuidoInitDesc::reserved
void * reserved
Definition: GUIDOEngine.h:54
GuidoInches2Unit
float GuidoInches2Unit(float val)
Converts inches into internal Guido units.
GuidoSVGExportWithFontSpec
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....
GPaintStruct::left
int left
Definition: GUIDOEngine.h:70
GuidoFreeTempoList
GuidoErrCode GuidoFreeTempoList(GuidoTempoList tempi)
Releases a tempo array..
GuidoGetVersionNums
void GuidoGetVersionNums(int *major, int *minor, int *sub)
Gives the library version number as three integers.
kAlwaysDistrib
Definition: GUIDOEngine.h:249
guidoErrMemory
memory allocation error
Definition: GUIDOEngine.h:218
kSystemsBB
Definition: GUIDOEngine.h:187
kMaxGuidoMeterCounts
#define kMaxGuidoMeterCounts
Definition: GUIDOEngine.h:93
guido_svg_with_font_spec
Definition: GUIDOEngine.h:197
kStavesBB
Definition: GUIDOEngine.h:189
GuidoLayoutSettings::neighborhoodSpacing
int neighborhoodSpacing
Definition: GUIDOEngine.h:286
GuidoGetTempoList
int GuidoGetTempoList(CARHandler inHandleAR, GuidoTempoList &tempi)
Gives the tempo list.
GuidoGetMeterAt
GuidoErrCode GuidoGetMeterAt(CARHandler inHandleAR, int voicenum, const GuidoDate &date, GuidoMeter &meter)
Gives the current meter on a given date and voice.
GuidoPageFormat::height
float height
Definition: GUIDOEngine.h:319
GuidoInitDesc::graphicDevice
VGDevice * graphicDevice
a graphic device pointer, if null a default device is used
Definition: GUIDOEngine.h:52
GuidoPageFormat
The page format parameters.
Definition: GUIDOEngine.h:316
GuidoParseString
GuidoErrCode GuidoParseString(const char *str, ARHandler *ar) GUIDOAPI_deprecated
kTextualTempo
Definition: GUIDOEngine.h:120
GuidoGetAR2GRTime
long GuidoGetAR2GRTime(const GRHandler gr)
Gets AR to GR procedure time.
CGRHandler
const struct NodeGR * CGRHandler
Definition: GUIDOEngine.h:39
GuidoGR2SVGColored
GuidoErrCode GuidoGR2SVGColored(const GRHandler handle, int page, std::ostream &out, const VGColor &color, bool embedFont)
Exports one page of score to SVG.
kGRLyrics
Definition: GUIDOEngine.h:250
kAutoDistrib
Definition: GUIDOEngine.h:249
GuidoOnDraw
GuidoErrCode GuidoOnDraw(GuidoOnDrawDesc *desc)
Draws one page of score into a graphic device.
GuidoUpdateGRParameterized
GuidoErrCode GuidoUpdateGRParameterized(GRHandler gr, const GuidoGrParameters *settings)
GuidoResizePageToMusic
GuidoErrCode GuidoResizePageToMusic(GRHandler inHandleGR)
Resize the page sizes to the music size.
GuidoLayoutSettings::systemsDistribution
int systemsDistribution
Definition: GUIDOEngine.h:265
GuidoOnDrawDesc::isprint
int isprint
Definition: GUIDOEngine.h:180
GuidoLayoutSettings::checkLyricsCollisions
bool checkLyricsCollisions
Definition: GUIDOEngine.h:306
GuidoUpdateGR
GuidoErrCode GuidoUpdateGR(GRHandler gr, const GuidoLayoutSettings *settings)
GuidoTempo::type
TempoType type
the tempo type (see above)
Definition: GUIDOEngine.h:138
GuidoFreeAR
void GuidoFreeAR(ARHandler ar)
GuidoGetSystemCount
int GuidoGetSystemCount(CGRHandler inHandleGR, int page)
Gives the number of systems on a given page.
guidoErrNoTextFont
the text font is not available
Definition: GUIDOEngine.h:226
GuidoPageFormat::marginbottom
float marginbottom
Definition: GUIDOEngine.h:323
GUIDOAPI
#define GUIDOAPI
Definition: GUIDOExport.h:39
guido_abstract
Definition: GUIDOEngine.h:198
kNeverDistrib
Definition: GUIDOEngine.h:249
GuidoInit
GuidoErrCode GuidoInit(GuidoInitDesc *desc)
kUnitUnitTempo
Definition: GUIDOEngine.h:120
GuidoMeter::unit
int unit
the meter unit
Definition: GUIDOEngine.h:112
GuidoOnDrawDesc::sizey
int sizey
Definition: GUIDOEngine.h:176
GRElement
GRElement
Definition: GUIDOEngine.h:250
GUIDOAPI_deprecated
#define GUIDOAPI_deprecated
Definition: GUIDOEngine.h:28
GuidoTempo::value
int value
the tempo value: defined for kUnitValueTempo only, null otherwise
Definition: GUIDOEngine.h:142
kGRDynamics
Definition: GUIDOEngine.h:250
guidoErrNotInitialized
required initialisation has not been performed
Definition: GUIDOEngine.h:232
GuidoPageFormat::marginright
float marginright
Definition: GUIDOEngine.h:322
GuidoGetNotesDensity
float GuidoGetNotesDensity(GRHandler gr)
GuidoTempoList
GuidoTempo * GuidoTempoList
Definition: GUIDOEngine.h:146
GPaintStruct
A structure to keep information about clipping and redrawing regions.
Definition: GUIDOEngine.h:64
GPaintStruct::right
int right
Definition: GUIDOEngine.h:72
kMeasureBB
Definition: GUIDOEngine.h:190
GPaintStruct::top
int top
Definition: GUIDOEngine.h:71
GuidoGrParameters::pageFormat
GuidoPageFormat pageFormat
Definition: GUIDOEngine.h:335
GuidoGetParsingTime
long GuidoGetParsingTime(const ARHandler ar)
Gets parsing time.
GuidoInitDesc::musicFont
const char * musicFont
the music font name, defaults to "guido" font when null
Definition: GUIDOEngine.h:57
kGRText
Definition: GUIDOEngine.h:250
GuidoErrCode
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
GuidoTempo::unit
GuidoDate unit
the beat unit expressed as a Guido date - undefined for kTextualTempo
Definition: GUIDOEngine.h:140
GuidoOnDrawDesc::handle
GRHandler handle
A Guido handler to a graphic representation.
Definition: GUIDOEngine.h:155
GUIDOExport.h
GuidoGetPageDate
GuidoErrCode GuidoGetPageDate(CGRHandler inHandleGR, int pageNum, GuidoDate *date)
Gives the time location of a Page.
GuidoPageFormat::width
float width
Definition: GUIDOEngine.h:318
GuidoLayoutSettings::systemsDistance
float systemsDistance
Definition: GUIDOEngine.h:260
TempoType
TempoType
tempo specification types.
Definition: GUIDOEngine.h:120
GuidoLayoutSettings::optimalPageFill
int optimalPageFill
Definition: GUIDOEngine.h:291
GuidoOnDrawDesc::updateRegion
GPaintStruct updateRegion
Indicates what to (re)draw.
Definition: GUIDOEngine.h:162
GuidoCheckVersionNums
GuidoErrCode GuidoCheckVersionNums(int major, int minor, int sub)
Checks a required library version number.
kSystemMapping
Definition: GUIDOEngine.h:245
GuidoDate
Representation of a date as a rational value.
Definition: GUIDOEngine.h:83
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
VGColor
Generic class to manipulate device independant colors.
Definition: VGColor.h:34
guidoErrUserCancel
the user cancelled the action
Definition: GUIDOEngine.h:222
GuidoGetDefaultPageFormat
void GuidoGetDefaultPageFormat(GuidoPageFormat *format)
Gives the default score page format.
guidoNoErr
null is used to denote no error
Definition: GUIDOEngine.h:214
guidoErrNoMusicFont
the music font is not available
Definition: GUIDOEngine.h:224
GuidoLayoutSettings::force
float force
Definition: GUIDOEngine.h:276
GuidoUnit2CM
float GuidoUnit2CM(float val)
Converts internal Guido units into centimeters.
kGRSlur
Definition: GUIDOEngine.h:250
GuidoPageFormat::margintop
float margintop
Definition: GUIDOEngine.h:321
GuidoLayoutSettings::spring
float spring
Definition: GUIDOEngine.h:281
GuidoCM2Unit
float GuidoCM2Unit(float val)
Converts centimeters into internal Guido units.
GuidoDate::denom
int denom
the date denominator
Definition: GUIDOEngine.h:88
kSystemsSliceBB
Definition: GUIDOEngine.h:188
GuidoLayoutSettings
Engine settings for the graphic score layout.
Definition: GUIDOEngine.h:255
GuidoTempo::unitvalue
GuidoDate unitvalue
the tempo value: defined for kUnitUnitTempo only, null otherwise
Definition: GUIDOEngine.h:144
GuidoSetStaffSize
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...
GRHandler
struct NodeGR * GRHandler
Definition: GUIDOEngine.h:37
kPageBB
Definition: GUIDOEngine.h:186
GuidoFindEventPage
int GuidoFindEventPage(CGRHandler inHandleGR, const GuidoDate &date)
Finds the page which has an event (note or rest) at a given date.
GuidoParseFile
GuidoErrCode GuidoParseFile(const char *filename, ARHandler *ar) GUIDOAPI_deprecated
GuidoLayoutSettings::proportionalRenderingForceMultiplicator
float proportionalRenderingForceMultiplicator
Definition: GUIDOEngine.h:302
GuidoOnDrawDesc::hdc
VGDevice * hdc
A graphic device context.
Definition: GUIDOEngine.h:158
GuidoAbstractExport
GuidoErrCode GuidoAbstractExport(const GRHandler handle, int page, std::ostream &out)
Exports an abstract representation of GUIDO draw commands.
GuidoFindPageAt
int GuidoFindPageAt(CGRHandler inHandleGR, const GuidoDate &date)
Finds the page which contain a given date.
GuidoOnDrawDesc::page
int page
The page number. Starts from 1.
Definition: GUIDOEngine.h:160
GuidoGetSymbolPath
GuidoErrCode GuidoGetSymbolPath(const ARHandler inHandleAR, std::vector< std::string > &inPathVector)
Returns the path corresponding to an AR.
GuidoCountVoices
int GuidoCountVoices(CARHandler inHandleAR)
Gives the number of score pages of the graphic representation.
GuidoGetDrawBoundingBoxes
int GuidoGetDrawBoundingBoxes()
Gives bounding boxes drawing state.
guidoErrActionFailed
the action failed
Definition: GUIDOEngine.h:234
GuidoLayoutSettings::resizePage2Music
int resizePage2Music
Definition: GUIDOEngine.h:296
GuidoPageFormat::marginleft
float marginleft
Definition: GUIDOEngine.h:320
GuidoTempo::date
GuidoDate date
the tempo date
Definition: GUIDOEngine.h:134
ARHandler
struct NodeAR * ARHandler
Definition: GUIDOEngine.h:36
GuidoGrParameters
A structure embedding a layout settings and a page format.
Definition: GUIDOEngine.h:332
kVoiceMapping
Definition: GUIDOEngine.h:243
GuidoSetDefaultPageFormat
void GuidoSetDefaultPageFormat(const GuidoPageFormat *format)
Sets the default score page format.
GuidoDate
class_export GuidoDate
print the time segment
Definition: GUIDOScoreMap.h:68
kNoMapping
Definition: GUIDOEngine.h:242
guido_binary
Definition: GUIDOEngine.h:199
GuidoFreeGR
void GuidoFreeGR(GRHandler gr)
GuidoLayoutSettings
struct GuidoLayoutSettings GuidoLayoutSettings
Engine settings for the graphic score layout.
GPaintStruct::erase
bool erase
a flag to ignore the following rect and to redraw everything
Definition: GUIDOEngine.h:67
GuidoGetOnDrawTime
long GuidoGetOnDrawTime(const GRHandler gr)
Gets GR drawing procedure time.
GuidoAR2GR
GuidoErrCode GuidoAR2GR(ARHandler ar, const GuidoLayoutSettings *settings, GRHandler *gr)
VGColor.h
GuidoGR2SVG
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.
GuidoMapping
GuidoMapping
Mapping mode for SVG export.
Definition: GUIDOEngine.h:241
GuidoGetLineSpace
float GuidoGetLineSpace()
Gives the distance between two staff lines.
GuidoUnit2Inches
float GuidoUnit2Inches(float val)
Converts internal Guido units into inches.
GuidoMeters
GuidoMeter * GuidoMeters
Definition: GUIDOEngine.h:114
GuidoOnDrawDesc::sizex
int sizex
Definition: GUIDOEngine.h:176
kUnitValueTempo
Definition: GUIDOEngine.h:120
CARHandler
const struct NodeAR * CARHandler
Definition: GUIDOEngine.h:38
GuidoOnDrawDesc::reserved
float reserved
Definition: GUIDOEngine.h:174
GuidoInitDesc::textFont
const char * textFont
a text font name, defaults to "times" font when null
Definition: GUIDOEngine.h:59
GuidoDrawBoundingBoxes
void GuidoDrawBoundingBoxes(int bbMap)
Control bounding boxes drawing.
GuidoGR2SVG1
GuidoErrCode GuidoGR2SVG1(const GRHandler handle, int page, std::ostream &out, int width, int height, bool embedFont)
Exports one page of score to SVG.
GuidoMarkVoice
GuidoErrCode GuidoMarkVoice(ARHandler inHandleAR, int voicenum, const GuidoDate &date, const GuidoDate &duration, unsigned char red, unsigned char green, unsigned char blue)
Gives a color to all notes of a voice between a given time interval.
GuidoGetDefaultLayoutSettings
void GuidoGetDefaultLayoutSettings(GuidoLayoutSettings *settings)
GuidoOnDrawDesc::scrollx
int scrollx
Definition: GUIDOEngine.h:169
kEventsBB
Definition: GUIDOEngine.h:191

Guido Project Copyright © 2019 Grame-CNCM