cmScore.h/c: Added cmScoreSetCount().
This commit is contained in:
parent
dca4d28d1c
commit
ec73cb280b
@ -1330,6 +1330,12 @@ void cmScorePrintLoc( cmScH_t h )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned cmScoreSetCount( cmScH_t h )
|
||||||
|
{
|
||||||
|
cmSc_t* p = _cmScHandleToPtr(h);
|
||||||
|
return p->setCnt;
|
||||||
|
}
|
||||||
|
|
||||||
cmScRC_t cmScoreSeqNotify( cmScH_t h )
|
cmScRC_t cmScoreSeqNotify( cmScH_t h )
|
||||||
{
|
{
|
||||||
cmScRC_t rc = kOkScRC;
|
cmScRC_t rc = kOkScRC;
|
||||||
|
@ -61,12 +61,12 @@ extern "C" {
|
|||||||
// The score can be divided into arbitrary non-overlapping sections.
|
// The score can be divided into arbitrary non-overlapping sections.
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
const cmChar_t* label; // section label
|
const cmChar_t* label; // section label
|
||||||
unsigned index; // index of this record in the internal section array
|
unsigned index; // index of this record in the internal section array
|
||||||
struct cmScoreLoc_str* locPtr; // location where this section starts
|
struct cmScoreLoc_str* locPtr; // location where this section starts
|
||||||
unsigned begEvtIndex; // score element index where this section starts
|
unsigned begEvtIndex; // score element index where this section starts
|
||||||
unsigned setCnt; // Count of elements in setArray[]
|
unsigned setCnt; // Count of elements in setArray[]
|
||||||
struct cmScoreSet_str** setArray; // Ptrs to sets which are applied to this section.
|
struct cmScoreSet_str** setArray; // Ptrs to sets which are applied to this section.
|
||||||
double vars[ kScVarCnt ]; // Set to DBL_MAX by default.
|
double vars[ kScVarCnt ]; // Set to DBL_MAX by default.
|
||||||
} cmScoreSection_t;
|
} cmScoreSection_t;
|
||||||
|
|
||||||
@ -154,6 +154,9 @@ extern "C" {
|
|||||||
cmScoreLoc_t* cmScoreLoc( cmScH_t h, unsigned idx );
|
cmScoreLoc_t* cmScoreLoc( cmScH_t h, unsigned idx );
|
||||||
void cmScorePrintLoc( cmScH_t h );
|
void cmScorePrintLoc( cmScH_t h );
|
||||||
|
|
||||||
|
// Return the count of sets.
|
||||||
|
unsigned cmScoreSetCount( cmScH_t h );
|
||||||
|
|
||||||
// Make callbacks for all events in the score. The callbacks
|
// Make callbacks for all events in the score. The callbacks
|
||||||
// contain cmScMsg_t records serialized as a byte stream.
|
// contain cmScMsg_t records serialized as a byte stream.
|
||||||
// Use cmScoreDecode() to convert the byte string to a
|
// Use cmScoreDecode() to convert the byte string to a
|
||||||
|
Loading…
Reference in New Issue
Block a user