libcm is a C development framework with an emphasis on audio signal processing applications.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

cmDspPgmKr.c 47KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. //( { file_desc:"'snap' Performance analysis Time Line program." kw:[snap]}
  2. #include "cmPrefix.h"
  3. #include "cmGlobal.h"
  4. #include "cmFloatTypes.h"
  5. #include "cmRpt.h"
  6. #include "cmErr.h"
  7. #include "cmCtx.h"
  8. #include "cmMem.h"
  9. #include "cmMallocDebug.h"
  10. #include "cmLinkedHeap.h"
  11. #include "cmText.h"
  12. #include "cmFileSys.h"
  13. #include "cmSymTbl.h"
  14. #include "cmJson.h"
  15. #include "cmPrefs.h"
  16. #include "cmDspValue.h"
  17. #include "cmMsgProtocol.h"
  18. #include "cmThread.h"
  19. #include "cmUdpPort.h"
  20. #include "cmUdpNet.h"
  21. #include "cmTime.h"
  22. #include "cmAudioSys.h"
  23. #include "cmProcObj.h"
  24. #include "cmDspCtx.h"
  25. #include "cmDspClass.h"
  26. #include "cmDspSys.h"
  27. #include "cmDspPgm.h"
  28. #include "cmAudioFile.h"
  29. #include "cmProcObj.h"
  30. #include "cmProc.h"
  31. #include "cmProc3.h"
  32. #include "cmVectOpsTemplateMain.h"
  33. #include "cmVectOps.h"
  34. #include "cmDspPgmKrChain.h"
  35. //)
  36. //( { label:cmDspPgm_TimeLine file_desc:"Audio/MIDI sequencer for analyzing the score vs. the performance and generating related audio transforms." kw:[spgm] }
  37. cmDspRC_t _cmDspSysPgm_TimeLine(cmDspSysH_t h, void** userPtrPtr )
  38. {
  39. cmDspRC_t rc = kOkDspRC;
  40. cmCtx_t* cmCtx = cmDspSysPgmCtx(h);
  41. cmErr_t err;
  42. krRsrc_t r;
  43. bool fragFl = false;
  44. bool useWtFl = false;
  45. bool useChain1Fl = true;
  46. bool useInputEqFl = false;
  47. bool useInCompFl = false;
  48. unsigned wtLoopCnt = 1; // 1=play once (-1=loop forever)
  49. unsigned wtInitMode = 0; // initial wt mode is 'silence'
  50. unsigned wtSmpCnt = floor(cmDspSysSampleRate(h)); // wt length == srate
  51. unsigned sfBufCnt = 7; // length of the MIDI event buffer
  52. unsigned sfMaxWndCnt = 10; // length of the score event buffer
  53. unsigned sfMinVel = 5; // ignore MIDI events below this velocity
  54. bool sfEnaMeasFl = false;
  55. double recdPlayInitAllocSecs = 10.0;
  56. double recdPlayMaxLaSecs = 2.0;
  57. double recdPlayCurLaSecs = 0.1;
  58. double recdPlayFadeRateDbPerSec = 4.0;
  59. bool eqBypassFl = false;
  60. unsigned eqLpSymId = cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"LP");
  61. double eqLpF0hz = 200.0;
  62. double eqLpQ = 0.5;
  63. double eqLpGain = 0.9;
  64. unsigned eqBpSymId = cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"BP");
  65. double eqBpF0hz = 350.0;
  66. double eqBpQ = 0.6;
  67. double eqBpGain = 1.0;
  68. unsigned eqHpSymId = cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"HP");
  69. double eqHpF0hz = 600.0;
  70. double eqHpQ = 0.5;
  71. double eqHpGain = 0.9;
  72. bool apfBypassFl = false;
  73. unsigned apfModeSymId = cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"AP");
  74. double apfF0hz = 100.0;
  75. double apfQ = 1.0;
  76. double apfGain = 1.0;
  77. // input compressor default parameters
  78. bool cmpBypassFl = false;
  79. double cmpInGain = 3.0;
  80. double cmpThreshDb = -40.0;
  81. double cmpRatio_num = 5.0;
  82. double cmpAtkMs = 20.0;
  83. double cmpRlsMs = 100.0;
  84. double cmpMakeup = 1.0;
  85. double cmpWndMaxMs = 1000.0;
  86. double cmpWndMs = 200.0;
  87. memset(&r,0,sizeof(r));
  88. cmErrSetup(&err,&cmCtx->rpt,"Kr Timeline");
  89. if( krLoadRsrc(h,&err,&r) != kOkDspRC )
  90. return rc;
  91. cmDspInst_t* ai0p = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 0);
  92. cmDspInst_t* ai1p = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 1);
  93. cmDspInst_t* ai2p = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 2);
  94. cmDspInst_t* ai3p = cmDspSysAllocInst(h,"AudioIn", NULL, 1, 3);
  95. cmDspInst_t* eqLpf_0 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqLpSymId,eqLpF0hz, eqLpQ, eqLpGain ) : NULL;
  96. cmDspInst_t* eqLpf_1 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqLpSymId,eqLpF0hz, eqLpQ, eqLpGain ) : NULL;
  97. cmDspInst_t* eqLpf_2 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqLpSymId,eqLpF0hz, eqLpQ, eqLpGain ) : NULL;
  98. cmDspInst_t* eqLpf_3 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqLpSymId,eqLpF0hz, eqLpQ, eqLpGain ) : NULL;
  99. cmDspInst_t* eqBpf_0 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqBpSymId,eqBpF0hz, eqBpQ, eqBpGain ) : NULL;
  100. cmDspInst_t* eqBpf_1 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqBpSymId,eqBpF0hz, eqBpQ, eqBpGain ) : NULL;
  101. cmDspInst_t* eqBpf_2 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqBpSymId,eqBpF0hz, eqBpQ, eqBpGain ) : NULL;
  102. cmDspInst_t* eqBpf_3 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqBpSymId,eqBpF0hz, eqBpQ, eqBpGain ) : NULL;
  103. cmDspInst_t* eqHpf_0 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqHpSymId,eqHpF0hz, eqHpQ, eqHpGain ) : NULL;
  104. cmDspInst_t* eqHpf_1 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqHpSymId,eqHpF0hz, eqHpQ, eqHpGain ) : NULL;
  105. cmDspInst_t* eqHpf_2 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqHpSymId,eqHpF0hz, eqHpQ, eqHpGain ) : NULL;
  106. cmDspInst_t* eqHpf_3 = useInputEqFl ? cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, eqBypassFl, eqHpSymId,eqHpF0hz, eqHpQ, eqHpGain ) : NULL;
  107. double eqMixGain = 1.0/3.0;
  108. cmDspInst_t* eqMx_0 = useInputEqFl ? cmDspSysAllocInst( h, "AMix", NULL, 4, 3, eqMixGain, eqMixGain, eqMixGain) : NULL;
  109. cmDspInst_t* eqMx_1 = useInputEqFl ? cmDspSysAllocInst( h, "AMix", NULL, 4, 3, eqMixGain, eqMixGain, eqMixGain) : NULL;
  110. cmDspInst_t* eqMx_2 = useInputEqFl ? cmDspSysAllocInst( h, "AMix", NULL, 4, 3, eqMixGain, eqMixGain, eqMixGain) : NULL;
  111. cmDspInst_t* eqMx_3 = useInputEqFl ? cmDspSysAllocInst( h, "AMix", NULL, 4, 3, eqMixGain, eqMixGain, eqMixGain) : NULL;
  112. cmDspInst_t* mx0p = cmDspSysAllocInst( h, "AMix", NULL, 3, 2, 0.5, 0.5);
  113. cmDspInst_t* mx1p = cmDspSysAllocInst( h, "AMix", NULL, 3, 2, 0.5, 0.5);
  114. cmDspInst_t* ci0p = NULL;
  115. cmDspInst_t* ci1p = NULL;
  116. if( useInCompFl )
  117. {
  118. ci0p = cmDspSysAllocInst(h,"Compressor", NULL, 8, cmpBypassFl, cmpThreshDb, cmpRatio_num, cmpAtkMs, cmpRlsMs, cmpMakeup, cmpWndMs, cmpWndMaxMs );
  119. ci1p = cmDspSysAllocInst(h,"Compressor", NULL, 8, cmpBypassFl, cmpThreshDb, cmpRatio_num, cmpAtkMs, cmpRlsMs, cmpMakeup, cmpWndMs, cmpWndMaxMs );
  120. }
  121. cmDspInst_t* tlp = cmDspSysAllocInst(h,"TimeLine", "tl", 2, r.tlFn, r.tlPrefixPath );
  122. cmDspInst_t* scp = cmDspSysAllocInst(h,"Score", "sc", 1, r.scFn );
  123. cmDspInst_t* php = cmDspSysAllocInst(h,"Phasor", NULL, 1, cmDspSysSampleRate(h) );
  124. cmDspInst_t* wtp = cmDspSysAllocInst(h,"WaveTable", NULL, 4, wtSmpCnt, wtInitMode, NULL, wtLoopCnt );
  125. cmDspInst_t* pts = cmDspSysAllocInst(h,"PortToSym", NULL, 2, "on", "off" );
  126. //cmDspInst_t* mip = cmDspSysAllocInst(h,"MidiIn", NULL, 0 );
  127. cmDspInst_t* mfp = cmDspSysAllocInst(h,"MidiFilePlay",NULL, 0 );
  128. cmDspInst_t* nmp = cmDspSysAllocInst(h,"NanoMap", NULL, 0 );
  129. cmDspInst_t* mop = cmDspSysAllocInst(h,"MidiOut", NULL, 2, r.midiDevice,r.midiOutPort);
  130. cmDspInst_t* mo2p = cmDspSysAllocInst(h,"MidiOut", NULL, 2, r.midiDevice,r.midiOutPort2);
  131. cmDspInst_t* sfp = cmDspSysAllocInst(h,"ScFol", NULL, 1, r.scFn, sfBufCnt, sfMaxWndCnt, sfMinVel, sfEnaMeasFl );
  132. cmDspInst_t* amp = cmDspSysAllocInst(h,"ActiveMeas", NULL, 1, 100 );
  133. cmDspInst_t* rpp = cmDspSysAllocInst(h,"RecdPlay", NULL, 6, 2, r.scFn, recdPlayInitAllocSecs, recdPlayMaxLaSecs, recdPlayCurLaSecs, recdPlayFadeRateDbPerSec);
  134. cmDspInst_t* modp = cmDspSysAllocInst(h,"ScMod", NULL, 2, r.modFn, "m1" );
  135. cmDspInst_t* modr = cmDspSysAllocInst(h,"ScMod", NULL, 2, r.modFn, "m1" );
  136. unsigned preGrpSymId = cmDspSysPresetRegisterGroup(h,"tl");
  137. unsigned cmpPreGrpSymId = cmDspSysPresetRegisterGroup(h,"tl_cmp");
  138. cmDspTlXform_t c0,c1,c2,c3;
  139. cmDspSysNewPage(h,"Controls-0");
  140. _cmDspSys_TlXformChain(h, &c0, preGrpSymId, cmpPreGrpSymId, amp, modp, 0, 0 );
  141. if( useChain1Fl )
  142. {
  143. cmDspSysNewPage(h,"Controls-1");
  144. _cmDspSys_TlXformChain(h, &c1, preGrpSymId, cmpPreGrpSymId, amp, modp, 1, 1 );
  145. }
  146. cmDspInst_t* mix0 = NULL;
  147. cmDspInst_t* mix1 = NULL;
  148. if( fragFl )
  149. {
  150. cmDspSysNewPage(h,"Ctl-R/P-0");
  151. _cmDspSys_TlXformChain(h, &c2, preGrpSymId, cmpPreGrpSymId, amp, modr, 2, 0 );
  152. cmDspSysNewPage(h,"Ctl-R/P-1");
  153. _cmDspSys_TlXformChain(h, &c3, preGrpSymId, cmpPreGrpSymId, amp, modr, 3, 1 );
  154. mix0 = cmDspSysAllocInst(h,"AMix", NULL, 3, 2, 1.0, 1.0 );
  155. mix1 = cmDspSysAllocInst(h,"AMix", NULL, 3, 2, 1.0, 1.0 );
  156. }
  157. if( useInCompFl )
  158. {
  159. cmDspSysNewPage(h,"InComp");
  160. cmDspInst_t* cmp0_byp = cmDspSysAllocCheckP( h, cmpPreGrpSymId, NULL, ("0-Bypass"), 0.0 );
  161. cmDspInst_t* cmp0_igain = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-In Gain"), 0.0, 10.0, 0.1, cmpInGain);
  162. cmDspInst_t* cmp0_thr = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-ThreshDb"), -100.0, 0.0, 0.1, cmpThreshDb);
  163. cmDspInst_t* cmp0_rat = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-Ratio"), 0.1, 100, 0.1, cmpRatio_num);
  164. cmDspInst_t* cmp0_atk = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-Atk Ms"), 0.0, 1000.0, 0.1, cmpAtkMs);
  165. cmDspInst_t* cmp0_rls = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-Rls Ms"), 0.0, 1000.0, 0.1, cmpRlsMs);
  166. cmDspInst_t* cmp0_mkup = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-Makeup"), 0.0, 10.0, 0.01, cmpMakeup);
  167. cmDspInst_t* cmp0_wnd = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("0-Wnd Ms"), 1.0, cmpWndMaxMs, 1.0, cmpWndMs );
  168. cmDspInst_t* cmp0_mtr = cmDspSysAllocInst(h,"Meter",("0-Env"), 3, 0.0, 0.0, 1.0);
  169. cmDspSysInstallCb(h, cmp0_byp, "out", ci0p, "bypass", NULL );
  170. cmDspSysInstallCb(h, cmp0_igain,"val", ci0p, "igain", NULL );
  171. cmDspSysInstallCb(h, cmp0_thr, "val", ci0p, "thr", NULL );
  172. cmDspSysInstallCb(h, cmp0_rat, "val", ci0p, "ratio", NULL );
  173. cmDspSysInstallCb(h, cmp0_atk, "val", ci0p, "atk", NULL );
  174. cmDspSysInstallCb(h, cmp0_rls, "val", ci0p, "rls", NULL );
  175. cmDspSysInstallCb(h, cmp0_mkup, "val", ci0p, "ogain", NULL );
  176. cmDspSysInstallCb(h, cmp0_wnd, "val", ci0p, "wnd", NULL );
  177. cmDspSysInstallCb(h, ci0p, "env", cmp0_mtr, "in", NULL );
  178. cmDspSysNewColumn(h,0);
  179. cmDspInst_t* cmp1_byp = cmDspSysAllocCheckP( h, cmpPreGrpSymId, NULL, ("1-Bypass"), 0.0 );
  180. cmDspInst_t* cmp1_igain = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-In Gain"), 0.0, 10.0, 0.1, cmpInGain);
  181. cmDspInst_t* cmp1_thr = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-ThreshDb"), -100.0, 0.0, 0.1, cmpThreshDb);
  182. cmDspInst_t* cmp1_rat = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-Ratio"), 0.1, 100, 0.1, cmpRatio_num);
  183. cmDspInst_t* cmp1_atk = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-Atk Ms"), 0.0, 1000.0, 0.1, cmpAtkMs);
  184. cmDspInst_t* cmp1_rls = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-Rls Ms"), 0.0, 1000.0, 0.1, cmpRlsMs);
  185. cmDspInst_t* cmp1_mkup = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-Makeup"), 0.0, 10.0, 0.01, cmpMakeup);
  186. cmDspInst_t* cmp1_wnd = cmDspSysAllocScalarP( h, cmpPreGrpSymId, NULL, ("1-Wnd Ms"), 1.0, cmpWndMaxMs, 1.0, cmpWndMs );
  187. cmDspInst_t* cmp1_mtr = cmDspSysAllocInst(h,"Meter",("1-Env"), 3, 0.0, 0.0, 1.0);
  188. cmDspSysInstallCb(h, cmp1_byp, "out", ci1p, "bypass", NULL );
  189. cmDspSysInstallCb(h, cmp1_igain,"val", ci1p, "igain", NULL );
  190. cmDspSysInstallCb(h, cmp1_thr, "val", ci1p, "thr", NULL );
  191. cmDspSysInstallCb(h, cmp1_rat, "val", ci1p, "ratio", NULL );
  192. cmDspSysInstallCb(h, cmp1_atk, "val", ci1p, "atk", NULL );
  193. cmDspSysInstallCb(h, cmp1_rls, "val", ci1p, "rls", NULL );
  194. cmDspSysInstallCb(h, cmp1_mkup, "val", ci1p, "ogain", NULL );
  195. cmDspSysInstallCb(h, cmp1_wnd, "val", ci1p, "wnd", NULL );
  196. cmDspSysInstallCb(h, ci1p, "env", cmp1_mtr, "in", NULL );
  197. }
  198. cmDspInst_t* apf0 = cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+0, apfQ, apfGain );
  199. cmDspInst_t* apf1 = cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+100.0, apfQ, apfGain );
  200. cmDspInst_t* apf2 = cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+200.0, apfQ, apfGain );
  201. cmDspInst_t* apf3 = cmDspSysAllocInst(h,"BiQuadEq",NULL, 5, apfBypassFl, apfModeSymId, apfF0hz+300.0, apfQ, apfGain );
  202. cmDspInst_t* ao0p = cmDspSysAllocInst(h,"AudioOut", NULL, 1, 2 );
  203. cmDspInst_t* ao1p = cmDspSysAllocInst(h,"AudioOut", NULL, 1, 3 );
  204. cmDspInst_t* ao2p = cmDspSysAllocInst(h,"AudioOut", NULL, 1, 4 );
  205. cmDspInst_t* ao3p = cmDspSysAllocInst(h,"AudioOut", NULL, 1, 5 );
  206. cmDspSysNewPage(h,"Main");
  207. cmDspInst_t* liveb= cmDspSysAllocInst(h,"Button", "live", 2, kCheckDuiId, 0.0 );
  208. cmDspInst_t* simb = cmDspSysAllocInst(h,"Button", "simulate",2, kCheckDuiId, 0.0 );
  209. cmDspInst_t* ainb = cmDspSysAllocInst(h,"Button", "audio in",2, kCheckDuiId, 0.0 );
  210. cmDspInst_t* measb= cmDspSysAllocInst(h,"Button", "meas", 2, kCheckDuiId, 0.0 );
  211. cmDspInst_t* onb = cmDspSysAllocInst(h,"Button", "start", 2, kButtonDuiId, 1.0 );
  212. cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop", 2, kButtonDuiId, 1.0 );
  213. //cmDspInst_t* prtb = cmDspSysAllocInst(h,"Button", "print", 2, kButtonDuiId, 1.0 );
  214. //cmDspInst_t* qtb = cmDspSysAllocInst(h,"Button", "quiet", 2, kButtonDuiId, 1.0 );
  215. cmDspInst_t* mutm = cmDspSysAllocInst(h,"Checkbox","main", 1, "main","on","off",1.0,0.0,1.0 );
  216. cmDspInst_t* mutr = cmDspSysAllocInst(h,"Checkbox","frag", 1, "frag","on","off",1.0,0.0,1.0 );
  217. cmDspInst_t* prp = cmDspSysAllocInst(h,"Printer", NULL, 1, ">" );
  218. cmDspInst_t* prd = cmDspSysAllocInst(h,"Printer", NULL, 1, "DYN:" );
  219. cmDspInst_t* pre = cmDspSysAllocInst(h,"Printer", NULL, 1, "EVEN:" );
  220. cmDspInst_t* prt = cmDspSysAllocInst(h,"Printer", NULL, 1, "TEMPO:");
  221. cmDspInst_t* prc = cmDspSysAllocInst(h,"Printer", NULL, 1, "COST:");
  222. //cmDspInst_t* prv = cmDspSysAllocInst(h,"Printer", NULL, 1, "Value:");
  223. // Record <-> Live switches
  224. cmDspInst_t* tlRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0); // time line swich
  225. cmDspInst_t* wtRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  226. cmDspInst_t* mfpRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  227. cmDspInst_t* amRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  228. cmDspInst_t* au0Sw = cmDspSysAllocInst(h,"1ofN", NULL, 2, 2, 0);
  229. cmDspInst_t* au1Sw = cmDspSysAllocInst(h,"1ofN", NULL, 2, 2, 0);
  230. cmDspInst_t* siRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  231. cmDspInst_t* muRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  232. cmDspInst_t* d0Rt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  233. cmDspInst_t* d1Rt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  234. cmDspInst_t* stRt = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);
  235. cmDspSysNewColumn(h,0);
  236. cmDspInst_t* igain0 = cmDspSysAllocInst(h,"Scalar", "In Gain-0", 5, kNumberDuiId, 0.0, 100.0,0.01, 1.0 );
  237. cmDspInst_t* igain1 = cmDspSysAllocInst(h,"Scalar", "In Gain-1", 5, kNumberDuiId, 0.0, 100.0,0.01, 1.0 );
  238. cmDspInst_t* igain2 = cmDspSysAllocInst(h,"Scalar", "In Gain-2", 5, kNumberDuiId, 0.0, 100.0,0.01, 1.0 );
  239. cmDspInst_t* igain3 = cmDspSysAllocInst(h,"Scalar", "In Gain-3", 5, kNumberDuiId, 0.0, 100.0,0.01, 1.0 );
  240. cmDspInst_t* lasecs = cmDspSysAllocInst(h,"Scalar", "LA Secs", 5, kNumberDuiId, 0.0, recdPlayMaxLaSecs,0.01, recdPlayCurLaSecs );
  241. cmDspInst_t* dbpsec = cmDspSysAllocInst(h,"Scalar", "Fade dBpSec", 5, kNumberDuiId, 0.0, 24.0, 0.01, recdPlayFadeRateDbPerSec);
  242. cmDspInst_t* apfByp = cmDspSysAllocCheck( h, "APF-Bypass", 0.0 );
  243. cmDspSysNewColumn(h,0);
  244. cmDspInst_t* ogain0 = cmDspSysAllocInst(h,"Scalar", "Out Gain-0", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
  245. cmDspInst_t* ogain1 = cmDspSysAllocInst(h,"Scalar", "Out Gain-1", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
  246. cmDspInst_t* ogain2 = cmDspSysAllocInst(h,"Scalar", "Out Gain-2", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
  247. cmDspInst_t* ogain3 = cmDspSysAllocInst(h,"Scalar", "Out Gain-3", 5, kNumberDuiId, 0.0, 10.0,0.01, 1.0 );
  248. //cmDspInst_t* scLoc = cmDspSysAllocInst(h,"Scalar", "Sc Loc", 5, kNumberDuiId, 0.0, 3000.0, 1.0, 0.0 );
  249. // Audio file recording
  250. cmDspInst_t* recdGain= cmDspSysAllocInst(h,"Scalar", "Recd Gain", 5, kNumberDuiId, 0.0, 100.0,0.01, 1.5 );
  251. cmDspInst_t* recdChk = cmDspSysAllocInst(h,"Button", "Record", 2, kCheckDuiId, 0.0 );
  252. cmDspInst_t* recdPtS = cmDspSysAllocInst(h,"GateToSym", NULL, 2, cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"open"),cmSymTblRegisterStaticSymbol(cmDspSysSymbolTable(h),"close"));
  253. cmDspInst_t* afop = cmDspSysAllocInst(h,"AudioFileOut",NULL, 2, r.recordDir,2);
  254. cmDspInst_t* mi0p = cmDspSysAllocInst(h,"AMeter","In 0", 0);
  255. cmDspInst_t* mi1p = cmDspSysAllocInst(h,"AMeter","In 1", 0);
  256. cmDspInst_t* mi2p = cmDspSysAllocInst(h,"AMeter","In 2", 0);
  257. cmDspInst_t* mi3p = cmDspSysAllocInst(h,"AMeter","In 3", 0);
  258. //--------------- Preset controls
  259. cmDspSysNewColumn(h,0);
  260. cmDspInst_t* preset = cmDspSysAllocInst( h, "Preset", NULL, 1, preGrpSymId );
  261. cmDspInst_t* presetLbl = cmDspSysAllocInst( h, "Text", "Preset", 1, "" );
  262. cmDspInst_t* storeBtn = cmDspSysAllocButton( h, "store", 0);
  263. cmDspInst_t* recallBtn = cmDspSysAllocButton( h, "recall", 0);
  264. cmDspSysInstallCb( h, presetLbl, "val", preset, "label",NULL);
  265. cmDspSysInstallCb( h, storeBtn, "sym", preset, "cmd", NULL );
  266. cmDspSysInstallCb( h, recallBtn, "sym", preset, "cmd", NULL );
  267. cmDspInst_t* prePath = cmDspSysAllocInst( h, "Fname", "prePath", 3, true,NULL,r.tlPrefixPath);
  268. cmDspSysNewColumn(h,0);
  269. //--------------- Recorded performance evaluation and Active Measurement related controls
  270. cmDspInst_t* clrBtn = cmDspSysAllocButton( h, "clear", 0);
  271. cmDspInst_t* prtBtn = cmDspSysAllocButton( h, "dump", 0);
  272. cmDspInst_t* mlst = cmDspSysAllocInst( h, "MsgList", NULL, 3, "meas", r.measFn, 2);
  273. cmDspInst_t* amCmd = cmDspSysAllocInst( h, "PortToSym", NULL, 2, "add", "rewind" );
  274. if( useInputEqFl ) cmDspSysNewPage(h,"In EQ");
  275. cmDspInst_t* eqLpByp0 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-LPF-Bypass-0", 0.0 ) : NULL;
  276. cmDspInst_t* eqLpMode0 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-LPF-Mode-0", 3, "biQuadEqMode", NULL, 1) : NULL;
  277. cmDspInst_t* eqLpFc0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Hz-0", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqLpF0hz ) : NULL;
  278. cmDspInst_t* eqLpQ0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Q-0", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqLpQ ) : NULL;
  279. cmDspInst_t* eqLpGain0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Gain-0", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqLpGain ) : NULL;
  280. cmDspInst_t* eqBpByp0 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-BPF-Bypass-0", 0.0 ) : NULL;
  281. cmDspInst_t* eqBpMode0 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-BPF-Mode-0", 3, "biQuadEqMode", NULL, 3) : NULL;
  282. cmDspInst_t* eqBpFc0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Hz-0", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqBpF0hz ) : NULL;
  283. cmDspInst_t* eqBpQ0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Q-0", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqBpQ ) : NULL;
  284. cmDspInst_t* eqBpGain0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Gain-0", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqBpGain ) : NULL;
  285. cmDspInst_t* eqHpByp0 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-HPF-Bypass-0", 0.0 ) : NULL;
  286. cmDspInst_t* eqHpMode0 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-HPF-Mode-0", 3, "biQuadEqMode", NULL, 2) : NULL;
  287. cmDspInst_t* eqHpFc0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Hz-0", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqHpF0hz ) : NULL;
  288. cmDspInst_t* eqHpQ0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Q-0", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqHpQ ) : NULL;
  289. cmDspInst_t* eqHpGain0 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Gain-0", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqHpGain ) : NULL;
  290. if( useInputEqFl ) cmDspSysNewColumn(h,0);
  291. cmDspInst_t* eqLpByp1 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-LPF-Bypass-1", 0.0 ) : NULL;
  292. cmDspInst_t* eqLpMode1 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-LPF-Mode-1", 3, "biQuadEqMode", NULL, 1) : NULL;
  293. cmDspInst_t* eqLpFc1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Hz-1", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqLpF0hz ) : NULL;
  294. cmDspInst_t* eqLpQ1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Q-1", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqLpQ ) : NULL;
  295. cmDspInst_t* eqLpGain1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Gain-1", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqLpGain ) : NULL;
  296. cmDspInst_t* eqBpByp1 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-BPF-Bypass-1", 0.0 ) : NULL;
  297. cmDspInst_t* eqBpMode1 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-BPF-Mode-1", 3, "biQuadEqMode", NULL, 3) : NULL;
  298. cmDspInst_t* eqBpFc1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Hz-1", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqBpF0hz ) : NULL;
  299. cmDspInst_t* eqBpQ1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Q-1", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqBpQ ) : NULL;
  300. cmDspInst_t* eqBpGain1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Gain-1", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqBpGain ) : NULL;
  301. cmDspInst_t* eqHpByp1 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-HPF-Bypass-1", 0.0 ) : NULL;
  302. cmDspInst_t* eqHpMode1 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-HPF-Mode-1", 3, "biQuadEqMode", NULL, 2) : NULL;
  303. cmDspInst_t* eqHpFc1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Hz-1", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqHpF0hz ) : NULL;
  304. cmDspInst_t* eqHpQ1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Q-1", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqHpQ ) : NULL;
  305. cmDspInst_t* eqHpGain1 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Gain-1", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqHpGain ) : NULL;
  306. if( useInputEqFl ) cmDspSysNewColumn(h,0);
  307. cmDspInst_t* eqLpByp2 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-LPF-Bypass-2", 0.0 ) : NULL;
  308. cmDspInst_t* eqLpMode2 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-LPF-Mode-2", 3, "biQuadEqMode", NULL, 1) : NULL;
  309. cmDspInst_t* eqLpFc2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Hz-2", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqLpF0hz ) : NULL;
  310. cmDspInst_t* eqLpQ2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Q-2", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqLpQ ) : NULL;
  311. cmDspInst_t* eqLpGain2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Gain-2", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqLpGain ) : NULL;
  312. cmDspInst_t* eqBpByp2 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-BPF-Bypass-2", 0.0 ) : NULL;
  313. cmDspInst_t* eqBpMode2 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-BPF-Mode-2", 3, "biQuadEqMode", NULL, 3) : NULL;
  314. cmDspInst_t* eqBpFc2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Hz-2", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqBpF0hz ) : NULL;
  315. cmDspInst_t* eqBpQ2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Q-2", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqBpQ ) : NULL;
  316. cmDspInst_t* eqBpGain2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Gain-2", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqBpGain ) : NULL;
  317. cmDspInst_t* eqHpByp2 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-HPF-Bypass-2", 0.0 ) : NULL;
  318. cmDspInst_t* eqHpMode2 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-HPF-Mode-2", 3, "biQuadEqMode", NULL, 2) : NULL;
  319. cmDspInst_t* eqHpFc2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Hz-2", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqHpF0hz ) : NULL;
  320. cmDspInst_t* eqHpQ2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Q-2", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqHpQ ) : NULL;
  321. cmDspInst_t* eqHpGain2 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Gain-2", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqHpGain ) : NULL;
  322. if( useInputEqFl ) cmDspSysNewColumn(h,0);
  323. cmDspInst_t* eqLpByp3 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-LPF-Bypass-3", 0.0 ) : NULL;
  324. cmDspInst_t* eqLpMode3 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-LPF-Mode-3", 3, "biQuadEqMode", NULL, 1) : NULL;
  325. cmDspInst_t* eqLpFc3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Hz-3", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqLpF0hz ) : NULL;
  326. cmDspInst_t* eqLpQ3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Q-3", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqLpQ ) : NULL;
  327. cmDspInst_t* eqLpGain3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-LPF-Gain-3", 5, kNumberDuiId, -300.0, 100.0, 0.5, eqLpGain ) : NULL;
  328. cmDspInst_t* eqBpByp3 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-BPF-Bypass-3", 0.0 ) : NULL;
  329. cmDspInst_t* eqBpMode3 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-BPF-Mode-3", 3, "biQuadEqMode", NULL, 3) : NULL;
  330. cmDspInst_t* eqBpFc3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Hz-3", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqBpF0hz ) : NULL;
  331. cmDspInst_t* eqBpQ3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Q-3", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqBpQ ) : NULL;
  332. cmDspInst_t* eqBpGain3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-BPF-Gain-3", 5, kNumberDuiId, -300.0, 100.0, 0.5, eqBpGain ) : NULL;
  333. cmDspInst_t* eqHpByp3 = useInputEqFl ? cmDspSysAllocCheck( h,"Eq-HPF-Bypass-3", 0.0 ) : NULL;
  334. cmDspInst_t* eqHpMode3 = useInputEqFl ? cmDspSysAllocInst( h,"MsgList","Eq-HPF-Mode-3", 3, "biQuadEqMode", NULL, 2) : NULL;
  335. cmDspInst_t* eqHpFc3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Hz-3", 5, kNumberDuiId, 0.0, 20000.0, 0.5, eqHpF0hz ) : NULL;
  336. cmDspInst_t* eqHpQ3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Q-3", 5, kNumberDuiId, 0.0, 100.0, 0.01, eqHpQ ) : NULL;
  337. cmDspInst_t* eqHpGain3 = useInputEqFl ? cmDspSysAllocInst( h,"Scalar", "Eq-HPF-Gain-3", 5, kNumberDuiId, -100.0, 100.0, 0.5, eqHpGain ) : NULL;
  338. if((rc = cmDspSysLastRC(h)) != kOkDspRC )
  339. return rc;
  340. // Output Audio file recording.
  341. cmDspSysInstallCb(h, recdGain,"val", afop, "gain0", NULL );
  342. cmDspSysInstallCb(h, recdGain,"val", afop, "gain1", NULL );
  343. cmDspSysInstallCb(h, recdChk, "out", recdPtS, "on", NULL );
  344. cmDspSysInstallCb(h, recdChk, "out", recdPtS, "off", NULL );
  345. cmDspSysInstallCb(h, recdPtS, "out", afop, "sel", NULL );
  346. // Audio connections
  347. cmDspSysConnectAudio(h, php, "out", wtp, "phs" ); // phs -> wt
  348. cmDspSysConnectAudio( h, ai0p, "out", mi0p, "in");
  349. cmDspSysConnectAudio( h, ai1p, "out", mi1p, "in");
  350. cmDspSysConnectAudio( h, ai2p, "out", mi2p, "in");
  351. cmDspSysConnectAudio( h, ai3p, "out", mi3p, "in");
  352. if( useInputEqFl )
  353. {
  354. cmDspSysConnectAudio(h, ai0p, "out", eqLpf_0, "in" ); // ain->eq
  355. cmDspSysConnectAudio(h, ai0p, "out", eqBpf_0, "in" );
  356. cmDspSysConnectAudio(h, ai0p, "out", eqHpf_0, "in" );
  357. cmDspSysConnectAudio(h, eqLpf_0, "out", eqMx_0, "in-0"); // eq -> eqmix
  358. cmDspSysConnectAudio(h, eqBpf_0, "out", eqMx_0, "in-1");
  359. cmDspSysConnectAudio(h, eqHpf_0, "out", eqMx_0, "in-2");
  360. cmDspSysConnectAudio(h, ai1p, "out", eqLpf_1, "in" ); // ain->eq
  361. cmDspSysConnectAudio(h, ai1p, "out", eqBpf_1, "in" );
  362. cmDspSysConnectAudio(h, ai1p, "out", eqHpf_1, "in" );
  363. cmDspSysConnectAudio(h, eqLpf_1, "out", eqMx_1, "in-0"); // eq -> eqmix
  364. cmDspSysConnectAudio(h, eqBpf_1, "out", eqMx_1, "in-1");
  365. cmDspSysConnectAudio(h, eqHpf_1, "out", eqMx_1, "in-2");
  366. cmDspSysConnectAudio(h, ai2p, "out", eqLpf_2, "in" ); // ain->eq
  367. cmDspSysConnectAudio(h, ai2p, "out", eqBpf_2, "in" );
  368. cmDspSysConnectAudio(h, ai2p, "out", eqHpf_2, "in" );
  369. cmDspSysConnectAudio(h, eqLpf_2, "out", eqMx_2, "in-0"); // eq -> eqmix
  370. cmDspSysConnectAudio(h, eqBpf_2, "out", eqMx_2, "in-1");
  371. cmDspSysConnectAudio(h, eqHpf_2, "out", eqMx_2, "in-2");
  372. cmDspSysConnectAudio(h, ai3p, "out", eqLpf_3, "in" ); // ain->eq
  373. cmDspSysConnectAudio(h, ai3p, "out", eqBpf_3, "in" );
  374. cmDspSysConnectAudio(h, ai3p, "out", eqHpf_3, "in" );
  375. cmDspSysConnectAudio(h, eqLpf_3, "out", eqMx_3, "in-0"); // eq -> eqmix
  376. cmDspSysConnectAudio(h, eqBpf_3, "out", eqMx_3, "in-1");
  377. cmDspSysConnectAudio(h, eqHpf_3, "out", eqMx_3, "in-2");
  378. }
  379. cmDspSysConnectAudio(h, useInputEqFl ? eqMx_0 : ai0p, "out", mx0p, "in-0" ); // eqmix -> input mix
  380. cmDspSysConnectAudio(h, useInputEqFl ? eqMx_1 : ai1p, "out", mx1p, "in-0" );
  381. cmDspSysConnectAudio(h, useInputEqFl ? eqMx_2 : ai2p, "out", mx0p, "in-1" );
  382. cmDspSysConnectAudio(h, useInputEqFl ? eqMx_3 : ai3p, "out", mx1p, "in-1" );
  383. if( useWtFl )
  384. {
  385. cmDspSysConnectAudio(h, wtp, "out", au0Sw, "a-in-0" ); // wt -> sw
  386. cmDspSysConnectAudio(h, mx0p, "out", au0Sw, "a-in-1" ); // ain -> sw
  387. //cmDspSysConnectAudio(h, ci0p, "out", au0Sw, "a-in-1" );
  388. cmDspSysConnectAudio(h, au0Sw, "a-out", rpp, "in-0"); // sw -> rcdply
  389. cmDspSysConnectAudio(h, au0Sw, "a-out", c0.kr0,"in" ); // sw -> kr
  390. cmDspSysConnectAudio(h, au0Sw, "a-out", c0.kr1,"in" ); // sw -> kr
  391. //cmDspSysConnectAudio(h, au0Sw, "a-out", mi0p, "in" ); // sw -> meter
  392. }
  393. else
  394. {
  395. cmDspSysConnectAudio(h, mx0p, "out", rpp, "in-0"); // sw -> rcdply
  396. if( useInCompFl )
  397. {
  398. cmDspSysConnectAudio(h, mx0p, "out", ci0p, "in" ); // ain -> in compress
  399. cmDspSysConnectAudio(h, ci0p, "out", c0.kr0, "in" );
  400. }
  401. else
  402. {
  403. cmDspSysConnectAudio(h, mx0p, "out", c0.kr0, "in" ); // ain -> sw
  404. }
  405. //cmDspSysConnectAudio(h, mx0p, "out", mi0p, "in" );
  406. }
  407. if( fragFl )
  408. {
  409. cmDspSysConnectAudio(h, c0.cmp, "out", mix0, "in-0" ); // cmp -> mix 0
  410. cmDspSysConnectAudio(h, rpp, "out-0", c2.kr0,"in" );
  411. cmDspSysConnectAudio(h, rpp, "out-0", c2.kr1,"in" );
  412. cmDspSysConnectAudio(h, c2.cmp, "out", mix0, "in-1"); // rpp -> mix 1
  413. cmDspSysConnectAudio(h, mix0, "out", apf0, "in" ); // mix -> aout
  414. cmDspSysConnectAudio(h, apf0, "out", ao0p, "in" );
  415. }
  416. else
  417. {
  418. cmDspSysConnectAudio(h, c0.cmp, "out", apf0, "in" );
  419. cmDspSysConnectAudio(h, c0.cmp, "out", apf2, "in" );
  420. cmDspSysConnectAudio(h, apf0, "out", ao0p, "in" );
  421. cmDspSysConnectAudio(h, apf2, "out", ao2p, "in" );
  422. //cmDspSysConnectAudio(h, wtp, "out", apf0, "in" );
  423. }
  424. if( useChain1Fl )
  425. {
  426. if( useWtFl )
  427. {
  428. cmDspSysConnectAudio(h, wtp, "out", au1Sw, "a-in-0" ); // wt -> sw
  429. cmDspSysConnectAudio(h, mx1p, "out", au1Sw, "a-in-1" ); // ain -> sw
  430. //cmDspSysConnectAudio(h, ci1p, "out", au1Sw, "a-in-1" );
  431. cmDspSysConnectAudio(h, au1Sw, "a-out", rpp, "in-1"); // sw -> rcdply
  432. cmDspSysConnectAudio(h, au1Sw, "a-out", c1.kr0,"in" ); // sw -> kr
  433. cmDspSysConnectAudio(h, au1Sw, "a-out", c1.kr1,"in" ); // sw -> kr
  434. //cmDspSysConnectAudio(h, au1Sw, "a-out", mi1p, "in" ); // sw -> meter
  435. }
  436. else
  437. {
  438. cmDspSysConnectAudio(h, mx1p, "out", rpp, "in-1"); // sw -> rcdply
  439. if( useInCompFl )
  440. {
  441. cmDspSysConnectAudio(h, mx1p, "out", ci1p, "in" ); // ain -> in compress
  442. cmDspSysConnectAudio(h, ci1p, "out", c1.kr0, "in" );
  443. }
  444. else
  445. {
  446. cmDspSysConnectAudio(h, mx1p, "out", c1.kr0, "in" ); // ain -> sw
  447. }
  448. //cmDspSysConnectAudio(h, mx1p, "out", mi1p, "in" );
  449. }
  450. if( fragFl )
  451. {
  452. cmDspSysConnectAudio(h, c1.cmp, "out", mix1, "in-0" ); // cmp -> mix 0
  453. cmDspSysConnectAudio(h, rpp, "out-1", c3.kr0, "in" );
  454. cmDspSysConnectAudio(h, rpp, "out-1", c3.kr1, "in" );
  455. cmDspSysConnectAudio(h, c3.cmp, "out", mix1, "in-1"); // rpp -> mix 1
  456. cmDspSysConnectAudio(h, mix1, "out", apf1, "in" ); // mix -> aout
  457. cmDspSysConnectAudio(h, apf1, "out", ao1p, "in" );
  458. }
  459. else
  460. {
  461. cmDspSysConnectAudio(h, c1.cmp, "out", apf1, "in" ); // cmp -> mix 0
  462. cmDspSysConnectAudio(h, c1.cmp, "out", apf3, "in" ); // cmp -> mix 0
  463. cmDspSysConnectAudio(h, apf1, "out", ao1p, "in" );
  464. cmDspSysConnectAudio(h, apf3, "out", ao3p, "in" );
  465. //cmDspSysConnectAudio(h, wtp, "out", apf1, "in" );
  466. }
  467. }
  468. cmDspSysConnectAudio(h, c0.cmp, "out", afop, "in0" ); // comp -> audio_file_out
  469. cmDspSysConnectAudio(h, c1.cmp, "out", afop, "in1" );
  470. //cmDspSysConnectAudio(h, ai0p, "out", afop, "in0" ); // comp -> audio_file_out
  471. //cmDspSysConnectAudio(h, ai1p, "out", afop, "in1" );
  472. //cmDspSysConnectAudio(h, ai0p, "out", ao2p, "in" ); // direct through from input to
  473. //cmDspSysConnectAudio(h, ai1p, "out", ao3p, "in" ); // output chs 2&3
  474. cmDspSysInstallCb( h, clrBtn, "sym", amp, "cmd", NULL ); // clear active meas.
  475. cmDspSysInstallCb( h, prtBtn, "sym", amp, "cmd", NULL ); // print active meas
  476. cmDspSysInstallCb( h, prtBtn, "sym", scp, "cmd", NULL );
  477. cmDspSysInstallCb( h, amCmd, "add", amp, "cmd", NULL ); // add active meas
  478. cmDspSysInstallCb( h, amCmd, "rewind", amp, "cmd", NULL ); // rewind active meas
  479. cmDspSysInstallCb( h, mlst, "loc", amp, "loc", NULL ); // recorded meas's list to active meas unit
  480. cmDspSysInstallCb( h, mlst, "typeId", amp, "type", NULL ); //
  481. cmDspSysInstallCb( h, mlst, "val", amp, "val", NULL ); //
  482. cmDspSysInstallCb( h, mlst, "cost", amp, "cst", NULL ); //
  483. cmDspSysInstallCb( h, mlst, "typeId", amCmd, "add", NULL ); //
  484. cmDspSysInstallCb( h, sfp, "out", amRt, "f-in", NULL ); // sfp-active meas router (rtr is switched by live btn)
  485. cmDspSysInstallCb( h, amRt, "f-out-0",amp, "sfloc", NULL );
  486. cmDspSysInstallCb( h, sfp, "vloc", amp, "loc", NULL ); // live meas's to active meas unit
  487. cmDspSysInstallCb( h, sfp, "vval", amp, "val", NULL ); //
  488. cmDspSysInstallCb( h, sfp, "vcost",amp, "cst", NULL ); //
  489. cmDspSysInstallCb( h, sfp, "vtyp", amp, "type", NULL ); //
  490. cmDspSysInstallCb( h, sfp, "vtyp", amCmd, "add", NULL); //
  491. // ***** delete this to prevent the score follower from driving the active-measure unit in 'live' mode
  492. cmDspSysInstallCb( h, amRt, "f-out-1",amp, "sfloc", NULL );
  493. // *****
  494. // active measure loc to xfad channel trigger
  495. cmDspSysInstallCb( h, amp, "scloc", c0.achan, "trig", NULL ); // See Also: modp.sw ->achan.trig
  496. if( useChain1Fl )
  497. {
  498. cmDspSysInstallCb( h, amp, "scloc", c1.achan, "trig", NULL );
  499. }
  500. if( fragFl )
  501. {
  502. cmDspSysInstallCb( h, amp, "scloc", c2.achan, "trig", NULL );
  503. cmDspSysInstallCb( h, amp, "scloc", c3.achan, "trig", NULL );
  504. }
  505. cmDspSysInstallCb( h, amp, "even", pre, "in", NULL ); // active meas output to printers
  506. cmDspSysInstallCb( h, amp, "dyn", prd, "in", NULL );
  507. cmDspSysInstallCb( h, amp, "tempo", prt, "in", NULL );
  508. cmDspSysInstallCb( h, amp, "cost", prc, "in", NULL );
  509. // wave-table to time-line cursor
  510. cmDspSysInstallCb( h, wtp, "fidx",tlp, "curs", NULL);
  511. cmDspSysInstallCb(h, prePath, "out", tlp, "path", NULL );
  512. // 'live' button -> live router selector switch
  513. cmDspSysInstallCb(h, liveb, "out", wtRt, "sel", NULL );
  514. cmDspSysInstallCb(h, liveb, "out", tlRt, "sel", NULL );
  515. cmDspSysInstallCb(h, liveb, "out", mfpRt,"sel", NULL );
  516. cmDspSysInstallCb(h, liveb, "out", amRt, "sel", NULL );
  517. cmDspSysInstallCb(h, liveb, "out", au0Sw, "chidx", NULL );
  518. cmDspSysInstallCb(h, liveb, "out", au1Sw, "chidx", NULL );
  519. cmDspSysInstallCb(h, liveb, "out", measb, "in", NULL );
  520. cmDspSysInstallCb(h, measb, "out", sfp, "measfl", NULL );
  521. // 'simulate' button -> simulate router selector switch
  522. cmDspSysInstallCb(h, simb, "out", ainb, "in", NULL );
  523. cmDspSysInstallCb(h, ainb, "out", au0Sw, "chidx", NULL );
  524. cmDspSysInstallCb(h, ainb, "out", au1Sw, "chidx", NULL );
  525. cmDspSysInstallCb(h, simb, "out", siRt, "sel", NULL );
  526. cmDspSysInstallCb(h, simb, "out", muRt, "sel", NULL );
  527. cmDspSysInstallCb(h, simb, "out", d1Rt, "sel", NULL );
  528. cmDspSysInstallCb(h, simb, "out", d0Rt, "sel", NULL );
  529. cmDspSysInstallCb(h, simb, "out", stRt, "sel", NULL );
  530. // start connections
  531. cmDspSysInstallCb(h, onb, "sym", tlRt, "s-in", NULL );
  532. cmDspSysInstallCb(h, tlRt, "s-out-0",tlp, "reset", NULL );
  533. cmDspSysInstallCb(h, onb, "sym", scp, "send", NULL );
  534. cmDspSysInstallCb(h, onb, "sym", mfpRt,"s-in", NULL );
  535. cmDspSysInstallCb(h, mfpRt,"s-out-0",mfp, "sel", NULL );
  536. cmDspSysInstallCb(h, onb, "sym", pts, "on", NULL );
  537. cmDspSysInstallCb(h, pts, "on", wtRt, "s-in", NULL );
  538. cmDspSysInstallCb(h, wtRt,"s-out-0", wtp, "cmd", NULL );
  539. cmDspSysInstallCb(h, pts, "on", modp, "cmd", NULL );
  540. cmDspSysInstallCb(h, pts, "on", modr, "cmd", NULL );
  541. cmDspSysInstallCb(h, pts, "on", rpp, "cmd", NULL );
  542. cmDspSysInstallCb(h, onb, "sym", amCmd, "rewind",NULL );
  543. cmDspSysInstallCb(h, onb, "out", c0.achan,"reset", NULL );
  544. if( useChain1Fl )
  545. {
  546. cmDspSysInstallCb(h, onb, "out", c1.achan,"reset", NULL );
  547. }
  548. // stop connections
  549. cmDspSysInstallCb(h, wtp, "done",offb,"in", NULL ); // 'done' from WT simulates pressing Stop btn.
  550. cmDspSysInstallCb(h, tlp, "mfn", pts, "off", NULL ); // Prevents WT start on new audio file from TL.
  551. cmDspSysInstallCb(h, offb, "sym", mfp, "sel", NULL );
  552. cmDspSysInstallCb(h, offb, "sym", pts, "off", NULL );
  553. cmDspSysInstallCb(h, pts, "off", wtp, "cmd", NULL );
  554. cmDspSysInstallCb(h, pts, "off", modp,"cmd", NULL );
  555. cmDspSysInstallCb(h, pts, "off", modr,"cmd", NULL );
  556. cmDspSysInstallCb(h, offb, "sym", mop, "reset", NULL );
  557. cmDspSysInstallCb(h, offb, "sym", mo2p, "reset", NULL );
  558. // time-line to wave-table selection
  559. cmDspSysInstallCb(h, tlp, "absi", wtp, "beg", NULL );
  560. cmDspSysInstallCb(h, tlp, "aesi", wtp, "end", NULL );
  561. cmDspSysInstallCb(h, tlp, "afn", wtp, "fn", NULL );
  562. // time-line to MIDI file player selection
  563. cmDspSysInstallCb(h, tlp, "mbsi", mfp, "bsi", NULL );
  564. cmDspSysInstallCb(h, tlp, "mesi", mfp, "esi", NULL );
  565. cmDspSysInstallCb(h, tlp, "mfn", mfp, "fn", NULL );
  566. // score to score follower - to set initial search location
  567. cmDspSysInstallCb(h, scp, "sel", sfp, "index", NULL );
  568. cmDspSysInstallCb(h, scp, "sel", modp,"reset", NULL );
  569. cmDspSysInstallCb(h, scp, "sel", modr,"reset", NULL );
  570. cmDspSysInstallCb(h, scp, "sel", rpp, "initIdx", NULL );
  571. cmDspSysInstallCb(h, scp, "sel", prp, "in", NULL );
  572. // NOTE: THIS IS A DUPLICATE OF THE scp.sel CONNECTIONS
  573. /*
  574. cmDspSysInstallCb(h, scLoc, "val", sfp, "index", NULL );
  575. cmDspSysInstallCb(h, scLoc, "val", modp,"reset", NULL );
  576. cmDspSysInstallCb(h, scLoc, "val", modr,"reset", NULL );
  577. cmDspSysInstallCb(h, scLoc, "val", rpp, "initIdx", NULL );
  578. cmDspSysInstallCb(h, scLoc, "val", prp, "in", NULL );
  579. */
  580. //cmDspSysInstallCb(h, reload,"out", modp, "reload", NULL );
  581. // MIDI file player to score follower
  582. cmDspSysInstallCb(h, mfp, "smpidx", siRt, "f-in",NULL );
  583. cmDspSysInstallCb(h, siRt, "f-out-1", sfp, "smpidx",NULL );
  584. // leave siRt.f-out-1 unconnected because it should be ignored in 'simulate mode'
  585. cmDspSysInstallCb(h, mfp, "id", muRt, "f-in", NULL );
  586. cmDspSysInstallCb(h, muRt, "f-out-1", sfp, "muid", NULL );
  587. // leave muRt.f-out-1 unconnected because it should be ignored in 'simulate mode'
  588. cmDspSysInstallCb(h, mfp, "d1", d1Rt, "f-in", NULL );
  589. cmDspSysInstallCb(h, d1Rt, "f-out-1", sfp, "d1", NULL );
  590. cmDspSysInstallCb(h, d1Rt, "f-out-1", nmp, "d1", NULL );
  591. cmDspSysInstallCb(h, nmp, "d1", mop, "d1", NULL );
  592. cmDspSysInstallCb(h, nmp, "d1", mo2p, "d1", NULL );
  593. cmDspSysInstallCb(h, mfp, "d0", d0Rt, "f-in", NULL );
  594. cmDspSysInstallCb(h, d0Rt, "f-out-1", sfp, "d0", NULL );
  595. cmDspSysInstallCb(h, d0Rt, "f-out-1", nmp, "d0", NULL );
  596. cmDspSysInstallCb(h, nmp, "d0", mop, "d0", NULL );
  597. cmDspSysInstallCb(h, nmp, "d0", mo2p, "d0", NULL );
  598. cmDspSysInstallCb(h, mfp, "status", stRt, "f-in", NULL );
  599. cmDspSysInstallCb(h, stRt, "f-out-1", sfp, "status",NULL );
  600. cmDspSysInstallCb(h, stRt, "f-out-1", nmp, "status",NULL );
  601. cmDspSysInstallCb(h, nmp, "status", mop, "status",NULL );
  602. cmDspSysInstallCb(h, nmp, "status", mo2p, "status",NULL );
  603. // MIDI input port
  604. //cmDspSysInstallCb(h, mip, "smpidx", sfp, "smpidx", NULL );
  605. //cmDspSysInstallCb(h, mip, "d1", sfp, "d1", NULL );
  606. //cmDspSysInstallCb(h, mip, "d0", sfp, "d0", NULL );
  607. //cmDspSysInstallCb(h, mip, "status", sfp, "status", NULL );
  608. // score follower to recd_play,modulator and printers
  609. //cmDspSysInstallCb(h, sfp, "out", rpp, "index", NULL );
  610. cmDspSysInstallCb(h, sfp, "out", modp, "index", NULL );
  611. //cmDspSysInstallCb(h, sfp, "out", modr, "index", NULL );
  612. cmDspSysInstallCb(h, sfp, "recent", prp, "in", NULL ); // report 'recent' but only act on 'max' loc index
  613. //cmDspSysInstallCb(h, prtb, "sym", sfp, "cmd", NULL );
  614. //cmDspSysInstallCb(h, qtb, "sym", sfp, "cmd", NULL );
  615. cmDspSysInstallCb( h, lasecs, "val", rpp, "curla", NULL ); // recd/play control
  616. cmDspSysInstallCb( h, dbpsec, "val", rpp, "frate", NULL );
  617. cmDspSysInstallCb(h, igain0, "val", ai0p, "gain", NULL ); // input gain control
  618. cmDspSysInstallCb(h, igain1, "val", ai1p, "gain", NULL );
  619. cmDspSysInstallCb(h, igain2, "val", ai2p, "gain", NULL ); // input gain control
  620. cmDspSysInstallCb(h, igain3, "val", ai3p, "gain", NULL );
  621. if( fragFl )
  622. {
  623. cmDspSysInstallCb(h, mutm, "out", mix0, "gain-0", NULL );
  624. cmDspSysInstallCb(h, mutm, "out", mix1, "gain-0", NULL );
  625. cmDspSysInstallCb(h, mutr, "out", mix0, "gain-1", NULL );
  626. cmDspSysInstallCb(h, mutr, "out", mix1, "gain-1", NULL );
  627. }
  628. cmDspSysInstallCb(h, apfByp, "out", apf0, "bypass", NULL ); // APF bypass
  629. cmDspSysInstallCb(h, apfByp, "out", apf1, "bypass", NULL ); //
  630. cmDspSysInstallCb(h, apfByp, "out", apf2, "bypass", NULL ); //
  631. cmDspSysInstallCb(h, apfByp, "out", apf3, "bypass", NULL ); //
  632. cmDspSysInstallCb(h, ogain0, "val", ao0p, "gain", NULL ); // output gain control
  633. cmDspSysInstallCb(h, ogain1, "val", ao1p, "gain", NULL );
  634. cmDspSysInstallCb(h, ogain2, "val", ao2p, "gain", NULL );
  635. cmDspSysInstallCb(h, ogain3, "val", ao3p, "gain", NULL );
  636. if( useInputEqFl )
  637. {
  638. cmDspSysInstallCb(h, eqLpByp0, "out", eqLpf_0, "bypass", NULL);
  639. cmDspSysInstallCb(h, eqLpMode0, "mode",eqLpf_0, "mode", NULL );
  640. cmDspSysInstallCb(h, eqLpFc0, "val", eqLpf_0, "f0", NULL );
  641. cmDspSysInstallCb(h, eqLpQ0, "val", eqLpf_0, "Q", NULL );
  642. cmDspSysInstallCb(h, eqLpGain0, "val", eqLpf_0, "gain", NULL );
  643. cmDspSysInstallCb(h, eqBpByp0, "out", eqBpf_0, "bypass", NULL);
  644. cmDspSysInstallCb(h, eqBpMode0, "mode",eqBpf_0, "mode", NULL );
  645. cmDspSysInstallCb(h, eqBpFc0, "val", eqBpf_0, "f0", NULL );
  646. cmDspSysInstallCb(h, eqBpQ0, "val", eqBpf_0, "Q", NULL );
  647. cmDspSysInstallCb(h, eqBpGain0, "val", eqBpf_0, "gain", NULL );
  648. cmDspSysInstallCb(h, eqHpByp0, "out", eqHpf_0, "bypass", NULL);
  649. cmDspSysInstallCb(h, eqHpMode0, "mode",eqHpf_0, "mode", NULL );
  650. cmDspSysInstallCb(h, eqHpFc0, "val", eqHpf_0, "f0", NULL );
  651. cmDspSysInstallCb(h, eqHpQ0, "val", eqHpf_0, "Q", NULL );
  652. cmDspSysInstallCb(h, eqHpGain0, "val", eqHpf_0, "gain", NULL );
  653. cmDspSysInstallCb(h, eqLpByp1, "out", eqLpf_1, "bypass", NULL);
  654. cmDspSysInstallCb(h, eqLpMode1, "mode",eqLpf_1, "mode", NULL );
  655. cmDspSysInstallCb(h, eqLpFc1, "val", eqLpf_1, "f0", NULL );
  656. cmDspSysInstallCb(h, eqLpQ1, "val", eqLpf_1, "Q", NULL );
  657. cmDspSysInstallCb(h, eqLpGain1, "val", eqLpf_1, "gain", NULL );
  658. cmDspSysInstallCb(h, eqBpByp1, "out", eqBpf_1, "bypass", NULL);
  659. cmDspSysInstallCb(h, eqBpMode1, "mode",eqBpf_1, "mode", NULL );
  660. cmDspSysInstallCb(h, eqBpFc1, "val", eqBpf_1, "f0", NULL );
  661. cmDspSysInstallCb(h, eqBpQ1, "val", eqBpf_1, "Q", NULL );
  662. cmDspSysInstallCb(h, eqBpGain1, "val", eqBpf_1, "gain", NULL );
  663. cmDspSysInstallCb(h, eqHpByp1, "out", eqHpf_1, "bypass", NULL);
  664. cmDspSysInstallCb(h, eqHpMode1, "mode",eqHpf_1, "mode", NULL );
  665. cmDspSysInstallCb(h, eqHpFc1, "val", eqHpf_1, "f0", NULL );
  666. cmDspSysInstallCb(h, eqHpQ1, "val", eqHpf_1, "Q", NULL );
  667. cmDspSysInstallCb(h, eqHpGain1, "val", eqHpf_1, "gain", NULL );
  668. cmDspSysInstallCb(h, eqLpByp2, "out", eqLpf_2, "bypass", NULL);
  669. cmDspSysInstallCb(h, eqLpMode2, "mode",eqLpf_2, "mode", NULL );
  670. cmDspSysInstallCb(h, eqLpFc2, "val", eqLpf_2, "f0", NULL );
  671. cmDspSysInstallCb(h, eqLpQ2, "val", eqLpf_2, "Q", NULL );
  672. cmDspSysInstallCb(h, eqLpGain2, "val", eqLpf_2, "gain", NULL );
  673. cmDspSysInstallCb(h, eqBpByp2, "out", eqBpf_2, "bypass", NULL);
  674. cmDspSysInstallCb(h, eqBpMode2, "mode",eqBpf_2, "mode", NULL );
  675. cmDspSysInstallCb(h, eqBpFc2, "val", eqBpf_2, "f0", NULL );
  676. cmDspSysInstallCb(h, eqBpQ2, "val", eqBpf_2, "Q", NULL );
  677. cmDspSysInstallCb(h, eqBpGain2, "val", eqBpf_2, "gain", NULL );
  678. cmDspSysInstallCb(h, eqHpByp2, "out", eqHpf_2, "bypass", NULL);
  679. cmDspSysInstallCb(h, eqHpMode2, "mode",eqHpf_2, "mode", NULL );
  680. cmDspSysInstallCb(h, eqHpFc2, "val", eqHpf_2, "f0", NULL );
  681. cmDspSysInstallCb(h, eqHpQ2, "val", eqHpf_2, "Q", NULL );
  682. cmDspSysInstallCb(h, eqHpGain2, "val", eqHpf_2, "gain", NULL );
  683. cmDspSysInstallCb(h, eqLpByp3, "out", eqLpf_3, "bypass", NULL);
  684. cmDspSysInstallCb(h, eqLpMode3, "mode",eqLpf_3, "mode", NULL );
  685. cmDspSysInstallCb(h, eqLpFc3, "val", eqLpf_3, "f0", NULL );
  686. cmDspSysInstallCb(h, eqLpQ3, "val", eqLpf_3, "Q", NULL );
  687. cmDspSysInstallCb(h, eqLpGain3, "val", eqLpf_3, "gain", NULL );
  688. cmDspSysInstallCb(h, eqBpByp3, "out", eqBpf_3, "bypass", NULL);
  689. cmDspSysInstallCb(h, eqBpMode3, "mode",eqBpf_3, "mode", NULL );
  690. cmDspSysInstallCb(h, eqBpFc3, "val", eqBpf_3, "f0", NULL );
  691. cmDspSysInstallCb(h, eqBpQ3, "val", eqBpf_3, "Q", NULL );
  692. cmDspSysInstallCb(h, eqBpGain3, "val", eqBpf_3, "gain", NULL );
  693. cmDspSysInstallCb(h, eqHpByp3, "out", eqHpf_3, "bypass", NULL);
  694. cmDspSysInstallCb(h, eqHpMode3, "mode",eqHpf_3, "mode", NULL );
  695. cmDspSysInstallCb(h, eqHpFc3, "val", eqHpf_3, "f0", NULL );
  696. cmDspSysInstallCb(h, eqHpQ3, "val", eqHpf_3, "Q", NULL );
  697. cmDspSysInstallCb(h, eqHpGain3, "val", eqHpf_3, "gain", NULL );
  698. }
  699. return rc;
  700. }
  701. //------------------------------------------------------------------------------
  702. //)