From 3a247f986f57b700544cf25190a9a9ea85b7bb1f Mon Sep 17 00:00:00 2001 From: kpl Date: Wed, 16 Oct 2013 16:29:48 -0700 Subject: [PATCH] cmDspKr.c : Minor code formatting changes. --- dsp/cmDspKr.c | 60 +++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/dsp/cmDspKr.c b/dsp/cmDspKr.c index a3f33ab..5a831ca 100644 --- a/dsp/cmDspKr.c +++ b/dsp/cmDspKr.c @@ -980,47 +980,47 @@ void _cmScFolMatcherCb( cmScMatcher* p, void* arg, cmScMatcherResult_t* rp ) unsigned i; for(i=ap->sfp->smp->vsi; isfp->smp->nsi; ++i) if(ap->sfp->smp->set[i].value != DBL_MAX ) - { - - switch( ap->sfp->smp->set[i].sp->varId ) { - case kEvenVarScId: - cmDspSetDouble(ap->ctx,inst,kEvenSfId,ap->sfp->smp->set[i].value); - break; - case kDynVarScId: - cmDspSetDouble(ap->ctx,inst,kDynSfId,ap->sfp->smp->set[i].value); - break; + switch( ap->sfp->smp->set[i].sp->varId ) + { + case kEvenVarScId: + cmDspSetDouble(ap->ctx,inst,kEvenSfId,ap->sfp->smp->set[i].value); + break; - case kTempoVarScId: - cmDspSetDouble(ap->ctx,inst,kTempoSfId,ap->sfp->smp->set[i].value); - break; + case kDynVarScId: + cmDspSetDouble(ap->ctx,inst,kDynSfId,ap->sfp->smp->set[i].value); + break; - default: - { assert(0); } - } + case kTempoVarScId: + cmDspSetDouble(ap->ctx,inst,kTempoSfId,ap->sfp->smp->set[i].value); + break; - cmDspSetDouble(ap->ctx,inst,kCostSfId,ap->sfp->smp->set[i].match_cost); + default: + { assert(0); } + } + + cmDspSetDouble(ap->ctx,inst,kCostSfId,ap->sfp->smp->set[i].match_cost); - // Set the values in the global variable storage - cmDspValue_t vv,cv; - unsigned j; - cmDsvSetDouble(&vv,ap->sfp->smp->set[i].value); - cmDsvSetDouble(&cv,ap->sfp->smp->set[i].match_cost); + // Set the values in the global variable storage + cmDspValue_t vv,cv; + unsigned j; + cmDsvSetDouble(&vv,ap->sfp->smp->set[i].value); + cmDsvSetDouble(&cv,ap->sfp->smp->set[i].match_cost); + + for(j=0; jsfp->smp->set[i].sp->sectCnt; ++j) + { + cmDspStoreSetValueViaSym(ap->ctx->dsH, ap->sfp->smp->set[i].sp->symArray[j], &vv ); + cmDspStoreSetValueViaSym(ap->ctx->dsH, ap->sfp->smp->set[i].sp->costSymArray[j], &cv ); + + cmDspSetSymbol(ap->ctx,inst,kSymSfId,ap->sfp->smp->set[i].sp->symArray[j]); + cmDspSetSymbol(ap->ctx,inst,kSymSfId,ap->sfp->smp->set[i].sp->costSymArray[j]); + } - for(j=0; jsfp->smp->set[i].sp->sectCnt; ++j) - { - cmDspStoreSetValueViaSym(ap->ctx->dsH, ap->sfp->smp->set[i].sp->symArray[j], &vv ); - cmDspStoreSetValueViaSym(ap->ctx->dsH, ap->sfp->smp->set[i].sp->costSymArray[j], &cv ); - cmDspSetSymbol(ap->ctx,inst,kSymSfId,ap->sfp->smp->set[i].sp->symArray[j]); - cmDspSetSymbol(ap->ctx,inst,kSymSfId,ap->sfp->smp->set[i].sp->costSymArray[j]); } - - } - /* // trigger 'section' starts for(i=ap->sfp->smp->vsli; isfp->smp->nsli; ++i)