aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/lua.c11
-rw-r--r--backends/osc.md3
2 files changed, 12 insertions, 2 deletions
diff --git a/backends/lua.c b/backends/lua.c
index 61e4e08..4a910a2 100644
--- a/backends/lua.c
+++ b/backends/lua.c
@@ -53,9 +53,16 @@ int init(){
}
static uint32_t lua_interval(){
- //FIXME Return delta for next timer here
+ size_t n = 0;
+ uint64_t next_timer = 1000;
+
if(timer_interval){
- return timer_interval;
+ for(n = 0; n < timers; n++){
+ if(timer[n].interval && timer[n].interval - timer[n].delta < next_timer){
+ next_timer = timer[n].interval - timer[n].delta;
+ }
+ }
+ return next_timer;
}
return 1000;
}
diff --git a/backends/osc.md b/backends/osc.md
index b7ce527..1446e06 100644
--- a/backends/osc.md
+++ b/backends/osc.md
@@ -58,6 +58,9 @@ To configure a range of faders, an expression similar to the following line coul
/1/fader* = f 0.0 1.0
```
+When matching channels against the patterns to use, the first matching pattern (in the order in which they have been configured) will be used
+as configuration for that channel.
+
#### Channel specification
A channel may be any valid OSC path, to which the instance root will be prepended if