|
int | GuidoCountVoices (CARHandler inHandleAR) |
| Gives the number of score pages of the graphic representation. More...
|
|
int | GuidoGetPageCount (CGRHandler inHandleGR) |
| Gives the number of score pages of the graphic representation. More...
|
|
int | GuidoGetSystemCount (CGRHandler inHandleGR, int page) |
| Gives the number of systems on a given page. More...
|
|
GuidoErrCode | GuidoDuration (CGRHandler inHandleGR, GuidoDate *date) |
| Returns the music duration of a score. More...
|
|
int | GuidoFindEventPage (CGRHandler inHandleGR, const GuidoDate &date) |
| Finds the page which has an event (note or rest) at a given date. More...
|
|
int | GuidoFindPageAt (CGRHandler inHandleGR, const GuidoDate &date) |
| Finds the page which contain a given date. More...
|
|
GuidoErrCode | GuidoGetPageDate (CGRHandler inHandleGR, int pageNum, GuidoDate *date) |
| Gives the time location of a Page. More...
|
|
GuidoErrCode | GuidoGetMeterAt (CARHandler inHandleAR, int voicenum, const GuidoDate &date, GuidoMeter &meter) |
| Gives the current meter on a given date and voice. More...
|
|
GuidoErrCode | GuidoGetMetersAt (CARHandler inHandleAR, int voicenum, const GuidoDate &date, GuidoMeters &meters) |
| Gives the current meters on a given date and voice. More...
|
|
GuidoErrCode | GuidoFreeMeters (GuidoMeters meters) |
| Releases a meters array.. More...
|
|
int | GuidoGetTempoList (CARHandler inHandleAR, GuidoTempoList &tempi) |
| Gives the tempo list. More...
|
|
GuidoErrCode | GuidoFreeTempoList (GuidoTempoList tempi) |
| Releases a tempo array.. More...
|
|
The Guido Engine produces pages of music and therefore, the graphic representation consists in a collection of pages. The following functions are intended to access these pages by page number as well as by date. Page numbers start at 1.
◆ GuidoCountVoices()
Gives the number of score pages of the graphic representation.
- Parameters
-
inHandleAR | a Guido opaque handle to a AR structure. |
- Returns
- the number of voices or a guido error code.
◆ GuidoDuration()
Returns the music duration of a score.
The duration is expressed as a fractional value where 1 represents a whole note.
- Parameters
-
inHandleGR | a Guido opaque handle to a GR structure. |
date | on output: the duration expressed as a fractional value |
- Returns
- a Guido error code.
◆ GuidoFindEventPage()
Finds the page which has an event (note or rest) at a given date.
- Bug:
- returns page + 1 when input date falls on the last system.
- Parameters
-
inHandleGR | a Guido opaque handle to a GR structure. |
date | the target date. |
- Returns
- a page number if greater than 0, 0 if no page found,
◆ GuidoFindPageAt()
Finds the page which contain a given date.
- Bug:
- returns page + 1 when input date falls on the last system.
- Parameters
-
inHandleGR | a Guido opaque handle to a GR structure. |
date | the target date. |
- Returns
- a page number if greater than 0, 0 if no page found,
◆ GuidoFreeMeters()
Releases a meters array..
- Parameters
-
- Returns
- a Guido error code.
◆ GuidoFreeTempoList()
Releases a tempo array..
- Parameters
-
- Returns
- a Guido error code.
◆ GuidoGetMeterAt()
Gives the current meter on a given date and voice.
- Parameters
-
inHandleAR | a Guido opaque handle to a AR structure. |
voicenum | a voice number (starts at 1). |
date | the target date. |
meter | on output: the current meter |
- Returns
- a Guido error code.
- See also
- the GuidoMeter structure for the meter coding conventions
- Warning
- since version 1.6.4 and the support of complex meters with different units, GuidoGetMeterAt may returns incorrect results. It is maintained for compatibility but will be deprecated in future releases. You should use GuidoGetMetesrAt instead.
◆ GuidoGetMetersAt()
Gives the current meters on a given date and voice.
- Parameters
-
inHandleAR | a Guido opaque handle to a AR structure. |
voicenum | a voice number (starts at 1). |
date | the target date. |
meters | on output: a null terminated meters array that must be freed wih GuidoFreeMeters. |
- Returns
- a Guido error code.
- See also
- the GuidoMeter structure for the meter coding conventions
◆ GuidoGetPageCount()
Gives the number of score pages of the graphic representation.
- Parameters
-
inHandleGR | a Guido opaque handle to a GR structure. |
- Returns
- a number of pages or a guido error code.
◆ GuidoGetPageDate()
Gives the time location of a Page.
- Parameters
-
inHandleGR | a Guido opaque handle to a GR structure. |
pageNum | a page number (starts at 1). |
date | on output: the page date if the page number is valid |
- Returns
- a Guido error code.
◆ GuidoGetSystemCount()
int GuidoGetSystemCount |
( |
CGRHandler |
inHandleGR, |
|
|
int |
page |
|
) |
| |
Gives the number of systems on a given page.
- Parameters
-
inHandleGR | a Guido opaque handle to a GR structure. |
page | a page number (starts at 1). |
- Returns
- the systems count on the given page or a guido error code.
◆ GuidoGetTempoList()
Gives the tempo list.
- Parameters
-
inHandleAR | a Guido opaque handle to a AR structure. |
tempi | on output: a tempo array that must be freed wih GuidoFreeTempoList. |
- Returns
- the tempo array size of a GuidoErrCode when negative.
- See also
- the GuidoTempo structure for the tempo coding conventions
- Note
- tempo unit and value are taken is priority from the 'bpm' tempo tag attribute or inferred from the tempo string when not present