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
   cmDspInst_t* ao3 = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 3 ); //           2
91
   cmDspInst_t* ao3 = cmDspSysAllocInst(h,"AudioOut",    NULL,   1, 3 ); //           2
92
 
92
 
93
   cmDspSysNewPage(h,"Main");
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
   // Record <-> Live switches
103
   // Record <-> Live switches
103
   cmDspInst_t* tlRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);  // time line swich
104
   cmDspInst_t* tlRt  = cmDspSysAllocInst(h,"Router", NULL, 2, 2, 0);  // time line swich
126
   cmDspSysInstallCb( h, meas, "val", scp, "meas", NULL);
127
   cmDspSysInstallCb( h, meas, "val", scp, "meas", NULL);
127
   cmDspSysInstallCb( h, meas, "val", tlp, "meas", NULL);
128
   cmDspSysInstallCb( h, meas, "val", tlp, "meas", NULL);
128
 
129
 
130
+
131
+
132
+
129
   //--------------- Preset controls
133
   //--------------- Preset controls
130
   cmDspSysNewColumn(h,0);
134
   cmDspSysNewColumn(h,0);
131
   cmDspInst_t* preset    = cmDspSysAllocInst(   h, "Preset", NULL, 1, preGrpSymId );
135
   cmDspInst_t* preset    = cmDspSysAllocInst(   h, "Preset", NULL, 1, preGrpSymId );
175
 
179
 
176
 
180
 
177
   cmDspSysInstallCb( h, clrBtn, "sym",    amp, "cmd",   NULL ); // clear active meas.
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
   //cmDspSysInstallCb( h, prtBtn, "sym",    scp, "cmd",   NULL ); // print the score
183
   //cmDspSysInstallCb( h, prtBtn, "sym",    scp, "cmd",   NULL ); // print the score
180
   cmDspSysInstallCb( h, amCmd,  "add",    amp, "cmd",   NULL ); // add active meas
184
   cmDspSysInstallCb( h, amCmd,  "add",    amp, "cmd",   NULL ); // add active meas
181
   cmDspSysInstallCb( h, amCmd,  "rewind", amp, "cmd",   NULL ); // rewind active meas
185
   cmDspSysInstallCb( h, amCmd,  "rewind", amp, "cmd",   NULL ); // rewind active meas
222
   cmDspSysInstallCb(h, onb, "out",     c0.achan,"reset",  NULL );
226
   cmDspSysInstallCb(h, onb, "out",     c0.achan,"reset",  NULL );
223
   cmDspSysInstallCb(h, onb, "out",     c1.achan,"reset",  NULL );
227
   cmDspSysInstallCb(h, onb, "out",     c1.achan,"reset",  NULL );
224
 
228
 
229
+  cmDspSysInstallCb(h, mod_sel,"out",  modp,  "sel", NULL );
230
+
225
   // stop connections
231
   // stop connections
226
   cmDspSysInstallCb(h, tlp,  "mfn", pts, "off",   NULL ); // Prevents WT start on new audio file from TL.
232
   cmDspSysInstallCb(h, tlp,  "mfn", pts, "off",   NULL ); // Prevents WT start on new audio file from TL.
227
   cmDspSysInstallCb(h, offb, "sym", mfp, "sel",   NULL ); 
233
   cmDspSysInstallCb(h, offb, "sym", mfp, "sel",   NULL ); 

Loading…
Cancel
Save