aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--config.c3
-rw-r--r--configs/osc-kbd.cfg25
2 files changed, 26 insertions, 2 deletions
diff --git a/config.c b/config.c
index 708b057..72b662c 100644
--- a/config.c
+++ b/config.c
@@ -213,8 +213,7 @@ int config_read(char* cfg_file){
else{
//pass to parser
//find separator
- for(separator = line; *separator && *separator != '='; separator++){
- }
+ separator = strchr(line, '=');
if(!*separator){
fprintf(stderr, "Not an assignment: %s\n", line);
diff --git a/configs/osc-kbd.cfg b/configs/osc-kbd.cfg
new file mode 100644
index 0000000..0abd131
--- /dev/null
+++ b/configs/osc-kbd.cfg
@@ -0,0 +1,25 @@
+; Maps a TouchOSC simpl keyboard layout to MIDI notes
+
+[backend midi]
+name = MIDIMonster
+
+[midi out]
+write = FLUID
+
+[osc pad]
+bind = * 8000
+dest = learn@8001
+
+[map]
+pad./1/push1 > out.note0.60
+pad./1/push2 > out.note0.61
+pad./1/push3 > out.note0.62
+pad./1/push4 > out.note0.63
+pad./1/push5 > out.note0.64
+pad./1/push6 > out.note0.65
+pad./1/push7 > out.note0.66
+pad./1/push8 > out.note0.67
+pad./1/push9 > out.note0.68
+pad./1/push10 > out.note0.69
+pad./1/push11 > out.note0.70
+pad./1/push12 > out.note0.71