Browse Source

cmDspPgmKrTimeLineLite.c : Added modulator sequence select drop-down menu control.

master
kevin 8 years ago
parent
commit
2648eeddef
1 changed files with 14 additions and 8 deletions
  1. 14
    8
      dsp/cmDspPgmKrTimeLineLite.c

+ 14
- 8
dsp/cmDspPgmKrTimeLineLite.c View File

@@ -91,13 +91,14 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
91 91
   cmDspInst_t* ao3 = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 3 ); //           2
92 92
 
93 93
   cmDspSysNewPage(h,"Main");
94
-  cmDspInst_t* onb  = cmDspSysAllocInst(h,"Button", "start",   2, kButtonDuiId, 1.0 );
95
-  cmDspInst_t* offb = cmDspSysAllocInst(h,"Button", "stop",    2, kButtonDuiId, 1.0 );
96
-  cmDspInst_t* prp  = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
97
-  cmDspInst_t* prd  = cmDspSysAllocInst(h,"Printer", NULL,   1, "DYN:" );
98
-  cmDspInst_t* pre  = cmDspSysAllocInst(h,"Printer", NULL,   1, "EVEN:" );
99
-  cmDspInst_t* prt  = cmDspSysAllocInst(h,"Printer", NULL,   1, "TEMPO:");
100
-  cmDspInst_t* prc  = cmDspSysAllocInst(h,"Printer", NULL,   1, "COST:");
94
+  cmDspInst_t* onb     = cmDspSysAllocInst(h,"Button", "start",   2, kButtonDuiId, 1.0 );
95
+  cmDspInst_t* offb    = cmDspSysAllocInst(h,"Button", "stop",    2, kButtonDuiId, 1.0 );
96
+  cmDspInst_t* mod_sel = cmDspSysAllocMsgList(h, NULL, "mod_sel", 1 );
97
+  cmDspInst_t* prp     = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
98
+  cmDspInst_t* prd     = cmDspSysAllocInst(h,"Printer", NULL,   1, "DYN:" );
99
+  cmDspInst_t* pre     = cmDspSysAllocInst(h,"Printer", NULL,   1, "EVEN:" );
100
+  cmDspInst_t* prt     = cmDspSysAllocInst(h,"Printer", NULL,   1, "TEMPO:");
101
+  cmDspInst_t* prc     = cmDspSysAllocInst(h,"Printer", NULL,   1, "COST:");
101 102
 
102 103
   // Record <-> Live switches
103 104
   cmDspInst_t* tlRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);  // time line swich
@@ -126,6 +127,9 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
126 127
   cmDspSysInstallCb( h, meas, "val", scp, "meas", NULL);
127 128
   cmDspSysInstallCb( h, meas, "val", tlp, "meas", NULL);
128 129
 
130
+
131
+
132
+
129 133
   //--------------- Preset controls
130 134
   cmDspSysNewColumn(h,0);
131 135
   cmDspInst_t* preset    = cmDspSysAllocInst(   h, "Preset", NULL, 1, preGrpSymId );
@@ -175,7 +179,7 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
175 179
 
176 180
 
177 181
   cmDspSysInstallCb( h, clrBtn, "sym",    amp, "cmd",   NULL ); // clear active meas.
178
-  cmDspSysInstallCb( h, prtBtn, "sym",    amp, "cmd",   NULL ); // print active meas
182
+  cmDspSysInstallCb( h, prtBtn, "sym",    modp, "cmd",   NULL ); // print active meas
179 183
   //cmDspSysInstallCb( h, prtBtn, "sym",    scp, "cmd",   NULL ); // print the score
180 184
   cmDspSysInstallCb( h, amCmd,  "add",    amp, "cmd",   NULL ); // add active meas
181 185
   cmDspSysInstallCb( h, amCmd,  "rewind", amp, "cmd",   NULL ); // rewind active meas
@@ -222,6 +226,8 @@ cmDspRC_t _cmDspSysPgm_TimeLineLite(cmDspSysH_t h, void** userPtrPtr )
222 226
   cmDspSysInstallCb(h, onb, "out",     c0.achan,"reset",  NULL );
223 227
   cmDspSysInstallCb(h, onb, "out",     c1.achan,"reset",  NULL );
224 228
 
229
+  cmDspSysInstallCb(h, mod_sel,"out",  modp,  "sel", NULL );
230
+
225 231
   // stop connections
226 232
   cmDspSysInstallCb(h, tlp,  "mfn", pts, "off",   NULL ); // Prevents WT start on new audio file from TL.
227 233
   cmDspSysInstallCb(h, offb, "sym", mfp, "sel",   NULL ); 

Loading…
Cancel
Save