cmScore.h/c: Added cmScoreSetCount().

This commit is contained in:
kevin 2013-01-18 09:29:48 -08:00
parent dca4d28d1c
commit ec73cb280b
2 changed files with 15 additions and 6 deletions

View File

@ -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 rc = kOkScRC;

View File

@ -61,12 +61,12 @@ extern "C" {
// The score can be divided into arbitrary non-overlapping sections.
typedef struct
{
const cmChar_t* label; // section label
unsigned index; // index of this record in the internal section array
struct cmScoreLoc_str* locPtr; // location where this section starts
unsigned begEvtIndex; // score element index where this section starts
unsigned setCnt; // Count of elements in setArray[]
struct cmScoreSet_str** setArray; // Ptrs to sets which are applied to this section.
const cmChar_t* label; // section label
unsigned index; // index of this record in the internal section array
struct cmScoreLoc_str* locPtr; // location where this section starts
unsigned begEvtIndex; // score element index where this section starts
unsigned setCnt; // Count of elements in setArray[]
struct cmScoreSet_str** setArray; // Ptrs to sets which are applied to this section.
double vars[ kScVarCnt ]; // Set to DBL_MAX by default.
} cmScoreSection_t;
@ -154,6 +154,9 @@ extern "C" {
cmScoreLoc_t* cmScoreLoc( cmScH_t h, unsigned idx );
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
// contain cmScMsg_t records serialized as a byte stream.
// Use cmScoreDecode() to convert the byte string to a