Преглед изворни кода

cmDspPgmKr.c : RecdPlay object now takes an initial score search location

from the score UI.
master
kevin пре 11 година
родитељ
комит
c0fb38d8b7
1 измењених фајлова са 5 додато и 4 уклоњено
  1. 5
    4
      dsp/cmDspPgmKr.c

+ 5
- 4
dsp/cmDspPgmKr.c Прегледај датотеку

@@ -361,8 +361,8 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
361 361
   cmCtx_t*        cmCtx      = cmDspSysPgmCtx(h);
362 362
   cmErr_t         err;
363 363
   krRsrc_t        r;
364
-  bool            fragFl     = false;
365
-  bool            useWtFl    = true;
364
+  bool            fragFl     = true;
365
+  bool            useWtFl    = false;
366 366
   unsigned        wtLoopCnt  = 1;                            // 1=play once (-1=loop forever)
367 367
   unsigned        wtInitMode = 0;                            // initial wt mode is 'silence'
368 368
   unsigned        wtSmpCnt   = floor(cmDspSysSampleRate(h)); // wt length == srate
@@ -397,7 +397,7 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
397 397
   cmDspInst_t* mop  = cmDspSysAllocInst(h,"MidiOut",     NULL,  2, r.midiDevice,r.midiOutPort);
398 398
   cmDspInst_t* sfp  = cmDspSysAllocInst(h,"ScFol",       NULL,  1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
399 399
   cmDspInst_t* amp  = cmDspSysAllocInst(h,"ActiveMeas",  NULL,  1, 100 );
400
-  cmDspInst_t* rpp  = cmDspSysAllocInst(h,"RecdPlay",    NULL,  6, 2, r.scFn, recdPlayInitAllocSecs, recdPlayMaxLaSecs, recdPlayCurLaSecs, recdPlayFadeRateDbPerSec );
400
+  cmDspInst_t* rpp  = cmDspSysAllocInst(h,"RecdPlay",    NULL,  8, 2, r.scFn, recdPlayInitAllocSecs, recdPlayMaxLaSecs, recdPlayCurLaSecs, recdPlayFadeRateDbPerSec, "/Users/kevin/src/cmkc/src/kc/data/seg_118.wav", "118" );
401 401
   cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
402 402
   cmDspInst_t* modr = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
403 403
  
@@ -695,7 +695,8 @@ cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
695 695
   cmDspSysInstallCb(h, scp, "sel",    sfp, "index",  NULL );
696 696
   cmDspSysInstallCb(h, scp, "sel",    modp,"reset", NULL );
697 697
   cmDspSysInstallCb(h, scp, "sel",    modr,"reset", NULL );
698
-  
698
+  cmDspSysInstallCb(h, scp, "sel",    rpp, "initIdx", NULL );
699
+  cmDspSysInstallCb(h, scp, "sel",    prp, "in", NULL );
699 700
   //cmDspSysInstallCb(h, reload,"out",  modp, "reload", NULL );
700 701
 
701 702
 

Loading…
Откажи
Сачувај