cmXScore.c : Added explicit variable for grace note duration.

This commit is contained in:
kevin 2016-08-03 17:10:31 -04:00
parent d2a3d0d32e
commit b66c936a99

View File

@ -1527,6 +1527,7 @@ cmXsRC_t _cmXScoreProcessGraceNotes( cmXScore_t* p )
{
cmXsRC_t rc = kOkXsRC;
unsigned graceGroupId = 1;
double graceDurSec = 1.0/15.0; // duration of all grace notes in seconds
for(; 1; ++graceGroupId)
{
@ -1567,7 +1568,7 @@ cmXsRC_t _cmXScoreProcessGraceNotes( cmXScore_t* p )
// set each grace note to have 1/20 of a second duration
if( cmIsFlag(np->flags,kGraceXsFl) )
np->duration = floor(ticksPerSec / 20.0);
np->duration = floor(ticksPerSec * graceDurSec);
gN += 1;
}
@ -1639,7 +1640,7 @@ cmXsRC_t _cmXScoreProcessGraceNotes( cmXScore_t* p )
mp = gn0p->meas;
for(i=0; n0p != gn1p; n1p=n1p->slink )
{
// if we are crossing a measure boundardy
// if we are crossing a measure boundary
if( n1p == NULL )
{
mp = mp->link;