Showing the changes to modules/data/timer.lua (1 of 585 files). Show all
Unified · Split
| @@ -0,0 +1,44 @@ | ||
| 1 | +sptbl["timer"] = { | |
| 2 | + | |
| 3 | + files = { | |
| 4 | + module = "timer.c", | |
| 5 | + header = "timer.h", | |
| 6 | + example = "ex_timer.c", | |
| 7 | + }, | |
| 8 | + | |
| 9 | + func = { | |
| 10 | + create = "sp_timer_create", | |
| 11 | + destroy = "sp_timer_destroy", | |
| 12 | + init = "sp_timer_init", | |
| 13 | + compute = "sp_timer_compute", | |
| 14 | + }, | |
| 15 | + | |
| 16 | + params = { | |
| 17 | + }, | |
| 18 | + | |
| 19 | + modtype = "module", | |
| 20 | + | |
| 21 | + description = [[Tap-tempo like timer | |
| 22 | + | |
| 23 | +When triggered, timer will begin an internal stopwatch until it is triggered again. | |
| 24 | +The output of the timer will be the time elapsed in seconds. | |
| 25 | +]], | |
| 26 | + | |
| 27 | + ninputs = 1, | |
| 28 | + noutputs = 1, | |
| 29 | + | |
| 30 | + inputs = { | |
| 31 | + { | |
| 32 | + name = "clock", | |
| 33 | + description = "When non-zero, will start/stop the timer." | |
| 34 | + }, | |
| 35 | + }, | |
| 36 | + | |
| 37 | + outputs = { | |
| 38 | + { | |
| 39 | + name = "out", | |
| 40 | + description = "Outputs the time of the last timer (in seconds)." | |
| 41 | + }, | |
| 42 | + } | |
| 43 | + | |
| 44 | +} | |