Browse Source

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

from the score UI.
master
kevin 11 years ago
parent
commit
c0fb38d8b7
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      dsp/cmDspPgmKr.c

+ 5
- 4
dsp/cmDspPgmKr.c View File

361
   cmCtx_t*        cmCtx      = cmDspSysPgmCtx(h);
361
   cmCtx_t*        cmCtx      = cmDspSysPgmCtx(h);
362
   cmErr_t         err;
362
   cmErr_t         err;
363
   krRsrc_t        r;
363
   krRsrc_t        r;
364
-  bool            fragFl     = false;
365
-  bool            useWtFl    = true;
364
+  bool            fragFl     = true;
365
+  bool            useWtFl    = false;
366
   unsigned        wtLoopCnt  = 1;                            // 1=play once (-1=loop forever)
366
   unsigned        wtLoopCnt  = 1;                            // 1=play once (-1=loop forever)
367
   unsigned        wtInitMode = 0;                            // initial wt mode is 'silence'
367
   unsigned        wtInitMode = 0;                            // initial wt mode is 'silence'
368
   unsigned        wtSmpCnt   = floor(cmDspSysSampleRate(h)); // wt length == srate
368
   unsigned        wtSmpCnt   = floor(cmDspSysSampleRate(h)); // wt length == srate
397
   cmDspInst_t* mop  = cmDspSysAllocInst(h,"MidiOut",     NULL,  2, r.midiDevice,r.midiOutPort);
397
   cmDspInst_t* mop  = cmDspSysAllocInst(h,"MidiOut",     NULL,  2, r.midiDevice,r.midiOutPort);
398
   cmDspInst_t* sfp  = cmDspSysAllocInst(h,"ScFol",       NULL,  1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
398
   cmDspInst_t* sfp  = cmDspSysAllocInst(h,"ScFol",       NULL,  1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
399
   cmDspInst_t* amp  = cmDspSysAllocInst(h,"ActiveMeas",  NULL,  1, 100 );
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
   cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
401
   cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
402
   cmDspInst_t* modr = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
402
   cmDspInst_t* modr = cmDspSysAllocInst(h,"ScMod",       NULL,  2, r.modFn, "m1" );
403
  
403
  
695
   cmDspSysInstallCb(h, scp, "sel",    sfp, "index",  NULL );
695
   cmDspSysInstallCb(h, scp, "sel",    sfp, "index",  NULL );
696
   cmDspSysInstallCb(h, scp, "sel",    modp,"reset", NULL );
696
   cmDspSysInstallCb(h, scp, "sel",    modp,"reset", NULL );
697
   cmDspSysInstallCb(h, scp, "sel",    modr,"reset", NULL );
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
   //cmDspSysInstallCb(h, reload,"out",  modp, "reload", NULL );
700
   //cmDspSysInstallCb(h, reload,"out",  modp, "reload", NULL );
700
 
701
 
701
 
702
 

Loading…
Cancel
Save