Rev 2097 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2097 | Rev 2099 | ||
---|---|---|---|
Line 341... | Line 341... | ||
341 | for (int i = 0; i < nlst; ++i) { |
341 | for (int i = 0; i < nlst; ++i) { |
342 | mod_dat& md = lst[i]; |
342 | mod_dat& md = lst[i]; |
343 | modulator& mod = md.mod; |
343 | modulator& mod = md.mod; |
344 | if (md.sb->state) { |
344 | if (md.sb->state) { |
345 | mod.active = !mod.active; |
345 | mod.active = !mod.active; |
- | 346 | if (mod.active) mod.t = ui_clk (); |
|
346 | ++g; |
347 | ++g; |
347 | }
|
348 | }
|
348 | }
|
349 | }
|
349 | cons << GREEN << "Toggled " << g << " modulations" << eol; |
350 | cons << GREEN << "Toggled " << g << " modulations" << eol; |
350 | }
|
351 | }
|